66.3k views
2 votes
Where does task main() go in the competiton template?

a. pre_auton()
b. task autonomous()
c. task usercontrol()
d. It is already included within the #include "Vex_Competition_Includes.c" command.

1 Answer

6 votes

Final answer:

In the VEX Robotics Competition template, the task main() is included within the "#include "Vex_Competition_Includes.c"" command and it calls other tasks such as pre_auton(), task autonomous(), and task usercontrol() as needed.

Step-by-step explanation:

The task main() is already included within the #include "Vex_Competition_Includes.c" command in the VEX Robotics Competition template. This line of code is essential as it includes all the necessary competition framework code. The main function itself is predefined within the competition template and is executed automatically when the robot is turned on or reset. The main function calls pre_auton(), task autonomous(), and task usercontrol() at the appropriate times during a VEX Robotics competition match.



Therefore, the correct answer to the question of where task main() goes in the competition template is:



d. It is already included within the "#include \"Vex_Competition_Includes.c\"" command.

User Adejones
by
8.6k points