So I have a function to create some tasks in the beginning of my opcontrol and I get an error:
"Invalid use of void expression"
for both of those lines. I don’t get whats wrong because when I used this at home with my testing cortex, everything compiled 100% fine
void runTasks() { // or some other function
TaskHandle setDriveVelTask = taskCreate(setDriveVelocities(), TASK_DEFAULT_STACK_SIZE, NULL, TASK_PRIORITY_DEFAULT);
TaskHandle setLiftVelTask = taskCreate(setLiftVelocities(), TASK_DEFAULT_STACK_SIZE, NULL, TASK_PRIORITY_DEFAULT);
}
If someone can help provide some information as to why its not working that would be awesome!
Also, I know this is not very good code for tasks and I didn’t pick good names, this is my just first time trying to use them and figure them out.