Motorcortex Core
version: 2.7.6
MainControlLoop.h
1
/*
2
* This is a template for the MOTORCORTEX Module header file
3
*/
4
5
#ifndef MAINCONTROLLOPP_H
6
#define MAINCONTROLLOPP_H
7
8
#include "ct_module.h"
9
10
class
MainControlLoop
:
public
mcx::container::Module
{
11
public
:
12
13
MainControlLoop
() =
default
;
14
15
~
MainControlLoop
()
override
=
default
;
16
17
private
:
18
void
create_(
const
char
* name,
mcx::parameter_server::Parameter
* parameter_server, uint64_t dt_micro_s)
override
;
19
20
bool
initPhase1_()
override
;
21
22
bool
initPhase2_()
override
;
23
24
bool
startOp_()
override
;
25
26
bool
stopOp_()
override
;
27
28
bool
iterateOp_(
const
mcx::container::TaskTime
& system_time,
mcx::container::UserTime
* user_time)
override
;
29
};
30
31
#endif
/* MAINCONTROLLOPP_H */
mcx::parameter_server::Parameter
Definition:
ps_parameter.h:45
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
MainControlLoop
Definition:
MainControlLoop.h:10
test
cmd_parser
MainControlLoop.h
Generated by
1.8.18