Updated default config and removed onManagerInit, onStateMachineInit

This commit is contained in:
dario 2024-11-20 19:34:38 +01:00
parent f75f23d4e9
commit 5c050fc06e
3 changed files with 0 additions and 29 deletions

View File

@ -20,7 +20,4 @@
// State transition message define with highest CAN priority // State transition message define with highest CAN priority
#define STA_TACOS_CAN_BUS_SYS_MSG_ID 0x0 #define STA_TACOS_CAN_BUS_SYS_MSG_ID 0x0
// TACOS requires system events to start threads
#define STA_RTOS_SYSTEM_EVENTS_ENABLE
#endif // STA_TACOS_CONFIGS_DEFAULT_HPP #endif // STA_TACOS_CONFIGS_DEFAULT_HPP

View File

@ -9,8 +9,6 @@
namespace namespace
{ {
// Static memory for system events
StaticEventGroup_t systemEventControlBlock;
// Event handle // Event handle
sta::RtosEvent * systemEvents = nullptr; sta::RtosEvent * systemEvents = nullptr;
} }

View File

@ -82,26 +82,6 @@ namespace sta
namespace tacos namespace tacos
{ {
/**
* @brief Function that is called before the statemachine task is started. Override it to
* adjust the statemachine to your specifications. Remains in TACOS for backwards compatibility, use startup() instead.
*
* @ingroup tacos_startup
*/
STA_WEAK
void onStatemachineInit()
{}
/**
* @brief Function that is called before the statemachine task is started. Override it to
* adjust the statemachine to your specifications. Remains in TACOS for backwards compatibility, use startup() instead.
*
* @ingroup tacos_startup
*/
STA_WEAK
void onManagerInit()
{}
/** /**
* @brief Function that is called before the statemachine task is started. It serves as an entry point for the user to * @brief Function that is called before the statemachine task is started. It serves as an entry point for the user to
* define the threads the statemachine should run. * define the threads the statemachine should run.
@ -114,10 +94,6 @@ namespace sta
void initStatemachine() void initStatemachine()
{ {
onStatemachineInit();
onManagerInit();
startup(); startup();
Statemachine::instance()->start(); Statemachine::instance()->start();