1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-11-14 12:26:06 +01:00
cdf2018-principal/arduino/position.c

22 lines
452 B
C

#include "position.h"
#include "AC.h"
void TaskPosition(void *pvParameters) {
(void) pvParameters;
TickType_t xLastWakeTime;
TickType_t xFrequency = 100 / portTICK_PERIOD_MS;
vTaskSuspend(tPosition); // TODO Dummy
xLastWakeTime = xTaskGetTickCount();
for (;;) {
vTaskDelayUntil(&xLastWakeTime, xFrequency);
}
}
void configurePosition() {
xTaskCreate(TaskPosition, "Position", 128, NULL, 2, &tPosition);;
}