Motorcortex Core  version: 2.7.6
TestA.h
1 /*
2 * This is a template for the MOTORCORTEX Module header file
3 */
4 
5 #ifndef TESTA_H
6 #define TESTA_H
7 
8 #include "ct_module.h"
9 #include "ps_handlers.h"
10 
11 class TestA : public mcx::container::Module {
12 public:
13 
14  TestA() = default;
15 
16  ~TestA() override = default;
17 
18 private:
19  void create_(const char* name, mcx::parameter_server::Parameter* parameter_server, uint64_t dt_micro_s) override;
20 
21  bool initPhase1_() override;
22 
23  bool initPhase2_() override;
24 
25  bool startOp_() override;
26 
27  bool stopOp_() override;
28 
29  bool iterateOp_(const mcx::container::TaskTime& system_time, mcx::container::UserTime* user_time) override;
30 
31  std::array<double, 11> output1;
32  std::array<double, 4> output2;
33 
34 };
35 
36 #endif /* TESTA_H */
mcx::parameter_server::Parameter
Definition: ps_parameter.h:45
TestA
Definition: TestA.h:11
mcx::container::TaskTime
Internal time source.
Definition: ct_time.h:25
mcx::container::UserTime
External time source.
Definition: ct_time.h:40
mcx::container::Module
A building block of the Motorcortex components.
Definition: ct_module.h:64