Stae MAchine

This commit is contained in:
2022-08-11 00:21:29 +02:00
parent e5f5687b2b
commit ce4a1dd2df
2 changed files with 150 additions and 0 deletions

13
src/ac/statemachine.h Normal file
View File

@ -0,0 +1,13 @@
#ifndef STATEMACHINE_H
#define STATEMACHINE_H
struct cw_StateMachine{
uint8_t prevstate,currentstate;
};
struct mavl * cw_statemachine_load_states (struct mavl * statemachine_states, cw_StateMachineState_t * states);
int cw_statemachine_run(struct cw_StateMachine * mach);
#endif