init
Dependencies: MPU6050 PinDetect circular_buffer
CaseFSM/CaseState.cpp@0:b416214256cd, 2017-11-07 (annotated)
- Committer:
- OsmanKameric
- Date:
- Tue Nov 07 16:35:14 2017 +0000
- Revision:
- 0:b416214256cd
FIRST
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
OsmanKameric | 0:b416214256cd | 1 | #include <CaseFsm.h> |
OsmanKameric | 0:b416214256cd | 2 | #include <CaseState.h> |
OsmanKameric | 0:b416214256cd | 3 | |
OsmanKameric | 0:b416214256cd | 4 | CaseState::CaseState(CaseFsmStates& states,Timer& timer): states_(states),stateTimer_(timer){} |
OsmanKameric | 0:b416214256cd | 5 | |
OsmanKameric | 0:b416214256cd | 6 | CaseState* CaseState::handle(SwitchPosition& event) { return states_.currentState(); } |
OsmanKameric | 0:b416214256cd | 7 | CaseState* CaseState::handle(RFIDEvent& event) { return states_.currentState(); } |
OsmanKameric | 0:b416214256cd | 8 | CaseState* CaseState::handle(TimerEnd& event) { return states_.currentState(); } |
OsmanKameric | 0:b416214256cd | 9 | |
OsmanKameric | 0:b416214256cd | 10 |