File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ typedef struct stateMachine_t stateMachine_t;
3737
3838state_t * getCurrState (void );
3939
40+ state_t * setCurrState (state_t * state );
4041state_t * findState (char * name );
4142/*
4243* The state machine is a directed graph. Each edge is a transition
Original file line number Diff line number Diff line change @@ -249,10 +249,7 @@ state_t *getCurrState(void);
249249state_t * getCurrState () {
250250 return stateMachine .currState ;
251251}
252- void setCurrState (state_t * state );
253- void setCurrState (state_t * state ) {
254- stateMachine .currState = state ;
255- }
252+
256253/***
257254 * runStateMachine -
258255 * Executes the current states action. A mini control loop
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ extern "C"
1818#include " data.h"
1919#include " state_machine.h"
2020#include " hv_iox.h"
21- extern void setCurrState ( state_t *state);
21+ # include " braking.h "
2222}
2323
2424
You can’t perform that action at this time.
0 commit comments