From 90a243f4fe55fd39a4138528e8c15468b9d273bb Mon Sep 17 00:00:00 2001 From: Makiv1 Date: Sat, 30 Nov 2024 14:59:04 -0700 Subject: [PATCH] Change task delay --- firmware/Core/Src/rtos_tasks/rtos_tasks.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/firmware/Core/Src/rtos_tasks/rtos_tasks.c b/firmware/Core/Src/rtos_tasks/rtos_tasks.c index c1cdf362..f3657e3c 100644 --- a/firmware/Core/Src/rtos_tasks/rtos_tasks.c +++ b/firmware/Core/Src/rtos_tasks/rtos_tasks.c @@ -184,14 +184,13 @@ void TASK_bootup(void *argument) { TASK_HELP_start_of_task(); uint8_t ant_deploy_complete = 0; - //TODO: Unsure of how to properly terminate this task. Should it be a forever loop? + uint32_t delay_ms = 100; while (1) { - //TODO: What should the delay be here? I suspect it should be smaller. - osDelay(2000); + //TODO: What should the delay be here? + osDelay(delay_ms); + delay_ms = 60000; if (!ant_deploy_complete) { - START_antenna_deploy(); - //TODO: This should be changed to the commeted out code - if (/*START_antenna_deploy() == 0*/ 1) { + if (START_antenna_deploy() == 0) { ant_deploy_complete = 1; } }