init
Dependencies: MPU6050 PinDetect circular_buffer
Diff: MotionFSM/State.cpp
- Revision:
- 0:b416214256cd
diff -r 000000000000 -r b416214256cd MotionFSM/State.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MotionFSM/State.cpp Tue Nov 07 16:35:14 2017 +0000 @@ -0,0 +1,9 @@ +#include <Fsm.h> +#include <State.h> + +State::State(FsmStates& states,Timer& timer): states_(states),stateTimer_(timer){} + +State* State::handle(Stop& event) { return states_.currentState(); } +State* State::handle(Move& event) { return states_.currentState(); } + +