My team programmer uses PROS and uses task to run a predefined cap movement at the same time while the robot moves in autonomous mode.
The PROS website on multitasking states that “The most important thing to remember when using tasks is that every task should include an infinite loop (
while(true) ), and every infinite loop needs to include a
She implemented the predefined cap function/task without the while() loop - thinking that the task would just run the code thru completion and exits. The auton program would use the task_create() each time she wants to use the cap function. She does not use task_delete(). The program seems to run fine so far.
Question: Is there a side-effect we do not know about?