7 #ifndef MOTORCORTEX_CORE_UP_MODULE_H
8 #define MOTORCORTEX_CORE_UP_MODULE_H
10 #include "ct_module.h"
14 namespace mcx::user_parameters {
18 explicit Module(
const std::string& filename);
21 Status load(
const std::string& file);
22 Status getStatus()
const;
26 bool initPhase1_()
override;
27 bool initPhase2_()
override;
28 bool startOp_()
override {
return true; }
32 bool stopOp_()
override {
return true; }
34 static nlohmann::json loadJson(
const std::string& filename);
35 static std::unique_ptr<UserParametersBase> selectLoader(
const nlohmann::json& json);
37 std::unique_ptr<uint8_t[]> data_;
38 BranchParams branch_params_;
39 DefaultValues default_values_;
40 Status status_{Status::DISABLED};
44 #endif // MOTORCORTEX_CORE_UP_MODULE_H