Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "robot-config.h"
- vex::competition Competiton;
- void pre_auton() {
- }
- //////////////////////////////////////////////////////
- // //
- // Your basic commands that you can copy and paste: //
- // //
- //////////////////////////////////////////////////////
- // Movement:
- //L.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);
- //R.spin(vex::directionType::fwd, 100, vex::velocityUnits::pct);
- // ^ ^
- // |________________________ |_____
- // Remember to change this for different directions |, and this | for degrees, percent and rpm
- //L.stop(vex::brakeType::coast);
- //R.stop(vex::brakeType::coast);
- ^
- // coast, brake and hold |
- // Sleep:
- //vex::task::sleep()
- // vex::task::sleep(number) is the time in miliseconds, 1000 ms to 1 second
- void autonomous() {
- }
- ///////////////////////////////////////
- // Don't touch anything beyond here! //
- ///////////////////////////////////////
- void usercontrol() {
- while (true) {
- }
- }
- int main() {
- Competiton.autonomous(autonomous);
- Competiton.drivercontrol(usercontrol);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement