init

Dependencies:   MPU6050 PinDetect circular_buffer

Committer:
OsmanKameric
Date:
Tue Nov 07 16:35:14 2017 +0000
Revision:
0:b416214256cd
FIRST

Who changed what in which revision?

UserRevisionLine numberNew contents of line
OsmanKameric 0:b416214256cd 1 #ifndef FSM_STATE_H_
OsmanKameric 0:b416214256cd 2 #define FSM_STATE_H_
OsmanKameric 0:b416214256cd 3 #include "mbed.h"
OsmanKameric 0:b416214256cd 4 struct Stop;
OsmanKameric 0:b416214256cd 5 struct Move;
OsmanKameric 0:b416214256cd 6
OsmanKameric 0:b416214256cd 7 class FsmStates;
OsmanKameric 0:b416214256cd 8
OsmanKameric 0:b416214256cd 9 class State {
OsmanKameric 0:b416214256cd 10 public:
OsmanKameric 0:b416214256cd 11 State(FsmStates& state, Timer& timer);
OsmanKameric 0:b416214256cd 12 virtual State* handle(Stop& event);
OsmanKameric 0:b416214256cd 13 virtual State* handle(Move& event);
OsmanKameric 0:b416214256cd 14 virtual ~State() {}
OsmanKameric 0:b416214256cd 15
OsmanKameric 0:b416214256cd 16 protected:
OsmanKameric 0:b416214256cd 17 FsmStates& states_;
OsmanKameric 0:b416214256cd 18 Timer& stateTimer_;
OsmanKameric 0:b416214256cd 19 };
OsmanKameric 0:b416214256cd 20 #endif /* ifndef FSM_STATE_H_ */