mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Updated test example
This commit is contained in:
parent
9ea2a16644
commit
452daf23b9
@ -135,8 +135,13 @@ namespace
|
||||
{
|
||||
public:
|
||||
|
||||
MotorControl(etl::ifsm_state** p_states, size_t size)
|
||||
MotorControl()
|
||||
: fsm(MOTOR_CONTROL)
|
||||
{
|
||||
}
|
||||
|
||||
//***********************************
|
||||
void Initialise(etl::ifsm_state** p_states, size_t size)
|
||||
{
|
||||
set_states(p_states, size);
|
||||
ClearStatistics();
|
||||
@ -324,7 +329,7 @@ namespace
|
||||
&idle, &running, &windingDown, &locked
|
||||
};
|
||||
|
||||
MotorControl motorControl(stateList, etl::size(stateList));
|
||||
MotorControl motorControl;
|
||||
|
||||
SUITE(test_map)
|
||||
{
|
||||
@ -333,6 +338,7 @@ namespace
|
||||
{
|
||||
etl::null_message_router nmr;
|
||||
|
||||
motorControl.Initialise(stateList, etl::size(stateList));
|
||||
motorControl.reset();
|
||||
motorControl.ClearStatistics();
|
||||
|
||||
@ -471,6 +477,7 @@ namespace
|
||||
{
|
||||
etl::null_message_router nmr;
|
||||
|
||||
motorControl.Initialise(stateList, etl::size(stateList));
|
||||
motorControl.reset();
|
||||
motorControl.ClearStatistics();
|
||||
|
||||
@ -519,6 +526,7 @@ namespace
|
||||
{
|
||||
etl::null_message_router nmr;
|
||||
|
||||
motorControl.Initialise(stateList, etl::size(stateList));
|
||||
motorControl.reset();
|
||||
motorControl.ClearStatistics();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user