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

26 lines
525 B
C

#include "position.h"
#include "AC.h"
void TaskPosition(void *pvParameters) {
(void) pvParameters;
TickType_t xLastWakeTime;
TickType_t xFrequency = 100 / portTICK_PERIOD_MS;
ulTaskNotifyTake(pdFALSE, portMAX_DELAY); // TODO Dummy
xLastWakeTime = xTaskGetTickCount();
for (;;) {
vTaskDelayUntil(&xLastWakeTime, xFrequency);
}
}
void configurePosition() {
actuel.x = 0;
actuel.y = 0;
actuel.o = 90;
xTaskCreate(TaskPosition, "Position", 128, NULL, 2, &tPosition);;
}