mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 01:37:33 +00:00
Added dummy statemachine
This commit is contained in:
32
App/Inc/tasks/statemachine.hpp
Normal file
32
App/Inc/tasks/statemachine.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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_ */
|
Reference in New Issue
Block a user