mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 01:37:33 +00:00
Fixed crashing timers by increasing the default task's stack
This commit is contained in:
@@ -10,11 +10,6 @@
|
||||
|
||||
#include <sta/config.hpp>
|
||||
|
||||
#include <sta/tacos/thread.hpp>
|
||||
#include <sta/rtos/timer.hpp>
|
||||
|
||||
#include <sta/debug/assert.hpp>
|
||||
|
||||
|
||||
#ifndef STA_TACOS_NUM_STATES
|
||||
# error "Number of states wasn't defined in config.hpp"
|
||||
@@ -26,6 +21,13 @@
|
||||
#endif
|
||||
|
||||
|
||||
#include <sta/tacos/thread.hpp>
|
||||
#include <sta/rtos/timer.hpp>
|
||||
#include <sta/debug/assert.hpp>
|
||||
|
||||
#include <functional>
|
||||
|
||||
|
||||
namespace sta
|
||||
{
|
||||
namespace tacos
|
||||
@@ -52,6 +54,8 @@ namespace sta
|
||||
|
||||
uint16_t getCurrentState() const;
|
||||
|
||||
void setStateTransitionFunction(uint16_t (*function)(uint16_t));
|
||||
|
||||
private:
|
||||
static Statemachine * _instance;
|
||||
|
||||
@@ -81,6 +85,7 @@ namespace sta
|
||||
uint16_t currentState_;
|
||||
RtosTimer lockoutTimer_;
|
||||
RtosTimer failsafeTimer_;
|
||||
std::function<uint16_t(uint16_t)> transitionFunc_;
|
||||
};
|
||||
} // namespace tacos
|
||||
} // namespace sta
|
||||
|
Reference in New Issue
Block a user