Land in a blink routing instead
This commit is contained in:
parent
c1ccfacaf0
commit
5d7f35b7c4
1 changed files with 15 additions and 0 deletions
|
@ -88,16 +88,31 @@ void task_blink_cycle(void *pvParams) {
|
|||
|
||||
vTaskDelay(pdMS_TO_TICKS(2000));
|
||||
|
||||
cmd.rate = 25;
|
||||
if (xQueueSend(blink_rate_q, &cmd, pdMS_TO_TICKS(200)) != pdPASS) {
|
||||
printf("Error sending blink command...");
|
||||
}
|
||||
|
||||
vTaskDelay(pdMS_TO_TICKS(2000));
|
||||
|
||||
cmd.rate = 500;
|
||||
if (xQueueSend(blink_rate_q, &cmd, pdMS_TO_TICKS(200)) != pdPASS) {
|
||||
printf("Error sending blink command...");
|
||||
}
|
||||
|
||||
vTaskDelay(pdMS_TO_TICKS(2000));
|
||||
|
||||
cmd.variant = BLINK_STATE;
|
||||
cmd.state = 1;
|
||||
if (xQueueSend(blink_rate_q, &cmd, pdMS_TO_TICKS(200)) != pdPASS) {
|
||||
printf("Error sending blink command...");
|
||||
}
|
||||
|
||||
cmd.variant = BLINK_RATE;
|
||||
cmd.rate = 200;
|
||||
if (xQueueSend(blink_rate_q, &cmd, pdMS_TO_TICKS(200)) != pdPASS) {
|
||||
printf("Error sending blink command...");
|
||||
}
|
||||
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue