Added reminder to call startALPAKA

This commit is contained in:
@CarlWachter 2023-12-14 17:46:13 +01:00
parent f189cc162e
commit 5bfc6b66bc

View File

@ -4,11 +4,28 @@ This is the Trajectory Analysis Control OS (TACOS) that serves as a starting poi
## Setting Up TACOS
Clone the repository using `--recurse-submodules` and then add it to an existing CubeIDE project. Be sure to add the include paths for Tacos, sta-core and rtos2-utils to the project with the following steps:
Clone the repository using `--recurse-submodules` and then add it to an existing CubeIDE FreeRTOS project. Be sure to add the include paths for Tacos, sta-core and rtos2-utils to the project with the following steps:
```
Properties -> C/C++ General -> Paths and Symbols -> Includes -> GNU C -> Add...
```
Under Core/Src/freertos.c you must call startALPAKA() from the default task. It should look like this:
```
void StartDefaultTask(void *argument)
{
/* USER CODE BEGIN StartDefaultTask */
extern void startALPAKA(void *);
startALPAKA(argument);
/* Infinite loop */
for(;;)
{
osDelay(1);
}
/* USER CODE END StartDefaultTask */
}
```
## Configuring TACOS
Be sure to add a "config.hpp" to the App/Inc/sta directory. This file could look like this:
```
@ -44,4 +61,4 @@ Be sure to add a "config.hpp" to the App/Inc/sta directory. This file could look
#define STA_TACOS_INITIAL_STATE 0
#endif /* INC_STA_CONFIG_HPP_ */
```
```