init
Dependencies: MPU6050 PinDetect circular_buffer
Diff: MotionFSM/include/State.h
- Revision:
- 0:b416214256cd
diff -r 000000000000 -r b416214256cd MotionFSM/include/State.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MotionFSM/include/State.h Tue Nov 07 16:35:14 2017 +0000 @@ -0,0 +1,20 @@ +#ifndef FSM_STATE_H_ +#define FSM_STATE_H_ +#include "mbed.h" +struct Stop; +struct Move; + +class FsmStates; + +class State { + public: + State(FsmStates& state, Timer& timer); + virtual State* handle(Stop& event); + virtual State* handle(Move& event); + virtual ~State() {} + + protected: + FsmStates& states_; + Timer& stateTimer_; +}; +#endif /* ifndef FSM_STATE_H_ */