mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 08:35:59 +00:00
Merge pull request 'Variable Stack size via config.hpp for manager and statemachine' (#26) from customizable_stack into main
Reviewed-on: https://git.intern.spaceteamaachen.de/ALPAKA/TACOS/pulls/26 Reviewed-by: dario <dario@noreply.git.intern.spaceteamaachen.de>
This commit is contained in:
commit
e03f624c5b
@ -7,6 +7,10 @@
|
||||
#define STA_TACOS_WATCHDOG_PRIORITY osPriorityHigh
|
||||
#define STA_TACOS_CAN_BUS_PRIORITY osPriorityHigh
|
||||
|
||||
// Set the Stack size for the TACOS threads, to 0 to use the default stack size, set in the ioc
|
||||
#define STA_TACOS_MANAGER_STACK_SIZE 0
|
||||
#define STA_TACOS_STATEMACHINE_STACK_SIZE 0
|
||||
|
||||
// Per default, we assume state 0 to be the initial state.
|
||||
#define STA_TACOS_INITIAL_STATE 0
|
||||
|
||||
|
@ -96,7 +96,7 @@ namespace sta
|
||||
}
|
||||
|
||||
Manager::Manager()
|
||||
: TacosThread{"Manager", STA_TACOS_MANAGER_PRIORITY},
|
||||
: TacosThread{"Manager", STA_TACOS_MANAGER_PRIORITY, STA_TACOS_MANAGER_STACK_SIZE},
|
||||
threads_{}
|
||||
{
|
||||
|
||||
|
@ -15,7 +15,7 @@ namespace sta
|
||||
namespace tacos
|
||||
{
|
||||
Statemachine::Statemachine()
|
||||
: TacosThread{"Statemachine", STA_TACOS_STATEMACHINE_PRIORITY},
|
||||
: TacosThread{"Statemachine", STA_TACOS_STATEMACHINE_PRIORITY, STA_TACOS_STATEMACHINE_STACK_SIZE},
|
||||
currentState_{STA_TACOS_INITIAL_STATE},
|
||||
lockoutTimer_{[](void *){}, nullptr},
|
||||
failsafeTimer_{[](void *){}, nullptr},
|
||||
|
Loading…
x
Reference in New Issue
Block a user