mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-12-16 22:38:02 +00:00
refactor: merged manger task into statemachine task
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
|
||||
// Tacos-specific includes.
|
||||
#include <sta/tacos/c_api/startup.h>
|
||||
#include <sta/tacos/manager.hpp>
|
||||
#include <sta/tacos/statemachine.hpp>
|
||||
#include <sta/tacos/watchdog.hpp>
|
||||
#include <sta/tacos/can_bus.hpp>
|
||||
@@ -101,23 +100,6 @@ namespace sta
|
||||
Statemachine::instance()->start();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Function that is called before the manager task is started. Override it to adjust
|
||||
* the manager to your specifications.
|
||||
*
|
||||
* @ingroup tacos_startup
|
||||
*/
|
||||
STA_WEAK
|
||||
void onManagerInit()
|
||||
{}
|
||||
|
||||
void initManager()
|
||||
{
|
||||
onManagerInit();
|
||||
|
||||
Manager::instance()->start();
|
||||
}
|
||||
|
||||
#ifdef STA_TACOS_WATCHDOG_ENABLED
|
||||
STA_WEAK
|
||||
void onWatchdogInit()
|
||||
@@ -158,8 +140,6 @@ namespace sta
|
||||
|
||||
tacos::initStatemachine();
|
||||
|
||||
tacos::initManager();
|
||||
|
||||
#ifdef STA_TACOS_WATCHDOG_ENABLED
|
||||
tacos::initWatchdog();
|
||||
#endif // STA_TACOS_WATCHDOG_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user