I tried implementing a third task for a motion controller but I can’t get it to complied. I have constructed it identically to my other working task. The spelling is also the same between the constructor and function are the same and the only two mentions of “Targeting” in the file.
Here is the error the complier gives
src/main.cpp:60:20: error: ‘Targeting’ was not declared in this scope
60 | pros::Task Aim(Targeting);
|
The constructors
void initialize() {
pros::lcd::initialize();
pros::Task Aim(Targeting);
pros::Task Tracking(odometery);
}
Note the odometery task is intentionally misspelled to avoid potential confusion with other variables and it is the aforementioned working task.