Merge pull request 'api-changes' (#18) from api-changes into main

Reviewed-on: https://git.intern.spaceteamaachen.de/ALPAKA/TACOS/pulls/18
Reviewed-by: carlwachter <carlwachter@noreply.git.intern.spaceteamaachen.de>
This commit is contained in:
dario
2024-01-03 09:33:17 +00:00
2 changed files with 97 additions and 0 deletions

33
src/tacos.cpp Normal file
View File

@@ -0,0 +1,33 @@
/*
* tacos.cpp
*
* Created on: Jan 2, 2024
* Author: Dario
*/
#include <sta/tacos.hpp>
namespace sta
{
namespace tacos
{
uint16_t getState()
{
return Statemachine::instance()->getCurrentState();
}
void setState(uint32_t from, uint32_t to, uint32_t lockout /* = 0 */)
{
Statemachine::instance()->requestStateTransition(from, to, lockout);
}
void setStateTimed(uint32_t from, uint32_t to, uint32_t millis, uint32_t lockout /* = 0 */)
{
Statemachine::instance()->requestTimedStateTransition(from, to, millis, lockout);
}
} // namespace tacos
} // namespace sta