mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-12 01:25:59 +00:00
33 lines
672 B
C++
33 lines
672 B
C++
/*
|
|
* 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
|
|
};
|
|
|
|
|
|
#endif /* INC_TASKS_STATEMACHINE_HPP_ */
|