I’m trying to get two tasks working. The code compiles ok, but only one task works.
I declared both in declarations.h
task ShooterSpeed ();
and main.cpp includes
Then, outside of a while loop, in main.cpp I have:
vex::task task1(User_Control ());
Only the User_Control task runs. If I comment out the first line calling User_Control, then ShooterSpeed works, so I know I have the tasks properly configured with their own while loop and task::sleep(20); and they can function by themselves.
I suspect I am missing some trigger to start multitasking?
Should I be declaring task1 and task2 somewhere? How, since they are not actually tasks.