ART v1.0-alpha
A Robot Template that raises the floor for VRC teams
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
16#include "vex.h"
17#include "robotConfig.h"
18#include "Art\ART.h"
19
20
27vex::competition Competition;
28
42void pre_auton(void)
43{
44}
45
59void autonomous(void)
60{
61}
62
81void usercontrol(void)
82{
83 while (1)
84 {
85
86 vex::wait(20, vex::msec);
87 }
88}
89
103int main()
104{
105 // Set up callbacks for autonomous and driver control periods.
106 Competition.autonomous(autonomous);
107 Competition.drivercontrol(usercontrol);
108
109 // Run the pre-autonomous function.
110 pre_auton();
111
112 // Prevent main from exiting with an infinite loop.
113 while (true)
114 {
115 vex::wait(100, vex::msec);
116 }
117}
A file containing includes to the entire ART library.
void usercontrol(void)
Runs the User Control Task.
Definition main.cpp:81
void autonomous(void)
Runs the Autonomous Task.
Definition main.cpp:59
void pre_auton(void)
Runs after robot is powered on and before autonomous or usercontrol.
Definition main.cpp:42
vex::competition Competition
A global instance of competition.
Definition main.cpp:27
int main()
Sets up Competition Tasks and runs pre_auton.
Definition main.cpp:103
Header declaring robot-configuring objects like Motors and other Devices.
The include file for the Vex Library.