Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MPU6050_SIM5320_TEST
Fork of KOPIRANO_cell_locker by
MotionFSM/include/State.h@2:aabc92901e25, 2017-11-13 (annotated)
- Committer:
- suads
- Date:
- Mon Nov 13 15:48:57 2017 +0000
- Revision:
- 2:aabc92901e25
- Parent:
- 1:75966605a6a3
first commit cell_locker
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| suads | 1:75966605a6a3 | 1 | #ifndef FSM_STATE_H_ | 
| suads | 1:75966605a6a3 | 2 | #define FSM_STATE_H_ | 
| suads | 1:75966605a6a3 | 3 | #include "mbed.h" | 
| suads | 1:75966605a6a3 | 4 | struct Stop; | 
| suads | 1:75966605a6a3 | 5 | struct Move; | 
| suads | 1:75966605a6a3 | 6 | |
| suads | 1:75966605a6a3 | 7 | class FsmStates; | 
| suads | 1:75966605a6a3 | 8 | |
| suads | 1:75966605a6a3 | 9 | class State { | 
| suads | 1:75966605a6a3 | 10 | public: | 
| suads | 1:75966605a6a3 | 11 | State(FsmStates& state, Timer& timer); | 
| suads | 1:75966605a6a3 | 12 | virtual State* handle(Stop& event); | 
| suads | 1:75966605a6a3 | 13 | virtual State* handle(Move& event); | 
| suads | 1:75966605a6a3 | 14 | virtual ~State() {} | 
| suads | 1:75966605a6a3 | 15 | |
| suads | 1:75966605a6a3 | 16 | protected: | 
| suads | 1:75966605a6a3 | 17 | FsmStates& states_; | 
| suads | 1:75966605a6a3 | 18 | Timer& stateTimer_; | 
| suads | 1:75966605a6a3 | 19 | }; | 
| suads | 1:75966605a6a3 | 20 | #endif /* ifndef FSM_STATE_H_ */ | 
