The code flags error to "usercontrol"

In the programming we get an error in “usercontrol” that comes at the end of the whole program, for some reason. We’ve already asked other teams in the squad and no one gives us a solution.

int main() {

  // Set up callbacks for autonomous and driver control periods.
  Competition.autonomous(autonomous);
  Competition.drivercontrol(usercontrol);

  // Run the pre-autonomous function.
  pre_auton();

  // Prevent main from exiting with an infinite loop.
  while (true) {
    wait(100, msec);
  }
}

Where it says “Competition.drivercontrol(usercontrol);” that’s where it marks the error

could be mis-matched braces, not enough code to really work with there.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.