Added new task for testing

This commit is contained in:
dario
2023-11-21 19:47:41 +01:00
committed by carlwachter
parent 5217945c03
commit a70dc00f4c
9 changed files with 84 additions and 8 deletions

View File

@@ -33,7 +33,7 @@
#define STA_TACOS_STATEMACHINE_PRIORITY osPriorityNormal
// Statemachine settings. Here, we only have a single state which is also the initial state.
#define STA_TACOS_NUM_STATES 2
#define STA_TACOS_NUM_STATES 3
#define STA_TACOS_INITIAL_STATE 0
#endif /* INC_STA_CONFIG_HPP_ */

26
App/Inc/tasks/disturb.hpp Normal file
View File

@@ -0,0 +1,26 @@
/*
* disturb.hpp
*
* Created on: Nov 20, 2023
* Author: Dario
*/
#ifndef INC_TASKS_DISTURB_HPP_
#define INC_TASKS_DISTURB_HPP_
#include <sta/tacos/thread.hpp>
namespace demo
{
class DisturbTask : public sta::tacos::TacosThread {
public:
DisturbTask();
void init() override;
void func() override;
};
} // namespace demo
#endif /* INC_TASKS_DISTURB_HPP_ */

View File

@@ -15,7 +15,6 @@ namespace demo
class DummyTask : public sta::tacos::TacosThread {
public:
DummyTask(const char* name);
~DummyTask() override;
void init() override;