Skip to content

Commit

Permalink
Change task delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Makiv1 committed Dec 1, 2024
1 parent ed3612a commit 6d630c2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions firmware/Core/Src/rtos_tasks/rtos_tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,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;
}
}
Expand Down

0 comments on commit 6d630c2

Please sign in to comment.