123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include "lfr_state_machine.h"
-
- /* void State::Idle::toggle(LFR_StateMachine* stateMachine)
- {
- stateMachine->setState()
- } */
-
- void State::Idle::enter(LFR_StateMachine* stateMachine)
- {
-
- }
-
- void State::Idle::exit(LFR_StateMachine* stateMachine)
- {
-
- }
-
- LFR_State& State::Idle::getInstance()
- {
- static State::Idle singleton;
- return singleton;
- }
-
- void State::Autonomous::enter(LFR_StateMachine* stateMachine)
- {
-
- }
-
- void State::Autonomous::exit(LFR_StateMachine* stateMachine)
- {
- stateMachine->setState(State::Idle::getInstance());
- }
-
- LFR_State& State::Autonomous::getInstance()
- {
- static State::Autonomous singleton;
- return singleton;
- }
-
- void State::Manual::enter(LFR_StateMachine* stateMachine)
- {
-
- }
-
- void State::Manual::exit(LFR_StateMachine* stateMachine)
- {
- stateMachine->setState(State::Idle::getInstance());
- }
-
- LFR_State& State::Manual::getInstance()
- {
- static State::Manual singleton;
- return singleton;
- }
|