Hello, I’m trying to initialize a task using taskCreate, but getting the error "use of undeclared identifier taskCreate. Here is the declaration code I am using.
void myTaskFnc(void* ignore) {
//the void* is there to provide a way to pass a
//generic value or structure to the task if needed
//pros needs this parameter in your function even if you don't use it
while(true) {
pros::delay(20);
}
}
void opcontrol() {
pros::Task myTask(myTaskFnc); //starts the task
// no need to provide any other parameters
pros::task_t myTask = taskCreate(myTaskFnc);
// alternative C-style way of starting task
}