VCS Competition autonomous not running

  1. last week

    void autonomous( void ) {
    Brain.Screen.print("Hello");
    vex::rotationUnits rotations = vex::rotationUnits::rev;
    vex::motor LeftMotor (vex::PORT1, vex::gearSetting::ratio18_1, false);
    vex::motor RightMotor (vex::PORT10, vex::gearSetting::ratio18_1, true);
    {
    int howMany = 1;
    LeftMotor.startRotateFor(howMany, rotations);
    RightMotor.rotateFor(howMany, rotations);

    vex::task::sleep(1000);

    howMany = -2;
    LeftMotor.startRotateFor(howMany, rotations);
    RightMotor.rotateFor(howMany, rotations);
    }
    When I run this as a stand alone autonomous it works,but when I put it into the VEX C++ Competition Template it doesn't run. I can't figure out what is the problem. Any Ideas?

 

or Sign Up to reply!