/* * statemachine.hpp * * Created on: Sep 6, 2023 * Author: Dario */ #ifndef INC_TASKS_STATEMACHINE_HPP_ #define INC_TASKS_STATEMACHINE_HPP_ // Two flags for the state change event. TODO: HOW TO SET THE VALUES? #define TACOS_STATE_CHG_FORCED 0x01 #define TACOS_STATE_CHG_TIMEOUT 0x02 #define TACOS_STATE_CHG_NATURAL 0x03 #define TACOS_STATE_CHG_ALL TACOS_STATE_CHG_FORCED | TACOS_STATE_CHG_TIMEOUT | TACOS_STATE_CHG_NATURAL // The event for signaling state changes to other tasks osEventFlagsId_t stateChangeEvent_id; // The states used for this demo enum tacos_states_t { init, started, flying, landed }; namespace tacos { class StateMachine { public: private: }; } #endif /* INC_TASKS_STATEMACHINE_HPP_ */