Before I begin, I’d like to state that I fully understand that VEXCode has been released and is what I should probably be using. I tried it and didn’t really like it, so I stuck with VCS. Now on to the main issue…I was attempting to upgrade my auton today by adding about 20-30 new commands and then going through and running the program and adjusting the values. I got to a point where it almost fully worked…I did some final adjustments and ran it again. It stopped about 2/3 through the auton code. I restarted the bot and tried a few more times with the same result. I’m guessing I left something wrong when I adjusted the values that last time, but I’ve reviewed the code and can’t seem to find it. Here’s my code for reference and I commented to show where it stopped. If anyone can find my mistake…thank you in adavance!
Lift1.startRotateFor(500,rotationUnits::deg,50,velocityUnits::pct);
Lift2.rotateFor(500,rotationUnits::deg,50,velocityUnits::pct);
FRDrive.startRotateFor(400,rotationUnits::deg,50,velocityUnits::pct);
BRDrive.startRotateFor(400,rotationUnits::deg,50,velocityUnits::pct);
FLDrive.startRotateFor(400,rotationUnits::deg,50,velocityUnits::pct);
BLDrive.rotateFor(400,rotationUnits::deg,50,velocityUnits::pct);
Intake.startRotateFor(-500,rotationUnits::deg,80,velocityUnits::pct);
Intake2.startRotateFor(500,rotationUnits::deg,80,velocityUnits::pct);
vex::task::sleep(10);
vex::task::sleep(1000);
FRDrive.startRotateFor(-500,rotationUnits::deg,50,velocityUnits::pct);
BRDrive.startRotateFor(-500,rotationUnits::deg,50,velocityUnits::pct);
FLDrive.startRotateFor(-500,rotationUnits::deg,50,velocityUnits::pct);
BLDrive.rotateFor(-500,rotationUnits::deg,50,velocityUnits::pct);
vex::task::sleep(1000);
FRDrive.startRotateFor(-650,rotationUnits::deg,50,velocityUnits::pct);
BRDrive.rotateFor(-650,rotationUnits::deg,50,velocityUnits::pct);
vex::task::sleep(1500);
FRDrive.startRotateFor(300,rotationUnits::deg,50,velocityUnits::pct);
BRDrive.startRotateFor(300,rotationUnits::deg,50,velocityUnits::pct);
FLDrive.startRotateFor(300,rotationUnits::deg,50,velocityUnits::pct);
BLDrive.rotateFor(300,rotationUnits::deg,50,velocityUnits::pct);
FRDrive.startRotateFor(100,rotationUnits::deg,30,velocityUnits::pct);
BRDrive.startRotateFor(100,rotationUnits::deg,30,velocityUnits::pct);
FLDrive.startRotateFor(100,rotationUnits::deg,30,velocityUnits::pct);
BLDrive.startRotateFor(100,rotationUnits::deg,30,velocityUnits::pct);
Intake.startRotateFor(800,rotationUnits::deg,100,velocityUnits::pct);
Intake2.startRotateFor(-800,rotationUnits::deg,100,velocityUnits::pct);
Lift1.startRotateFor(-600,rotationUnits::deg,50,velocityUnits::pct);
Lift2.rotateFor(-600,rotationUnits::deg,50,velocityUnits::pct);
\\nothing below here ran
Lift1.startRotateFor(500,rotationUnits::deg,50,velocityUnits::pct);
Lift2.rotateFor(500,rotationUnits::deg,50,velocityUnits::pct);
FRDrive.startRotateFor(-650,rotationUnits::deg,50,velocityUnits::pct);
BRDrive.rotateFor(-650,rotationUnits::deg,50,velocityUnits::pct);
FRDrive.startRotateFor(300,rotationUnits::deg,50,velocityUnits::pct);
BRDrive.startRotateFor(300,rotationUnits::deg,50,velocityUnits::pct);
FLDrive.startRotateFor(300,rotationUnits::deg,50,velocityUnits::pct);
BLDrive.rotateFor(300,rotationUnits::deg,50,velocityUnits::pct);
Lift1.startRotateFor(1200,rotationUnits::deg,50,velocityUnits::pct);
Lift2.rotateFor(1200,rotationUnits::deg,50,velocityUnits::pct);
FRDrive.startRotateFor(400,rotationUnits::deg,50,velocityUnits::pct);
BRDrive.startRotateFor(400,rotationUnits::deg,50,velocityUnits::pct);
FLDrive.startRotateFor(400,rotationUnits::deg,50,velocityUnits::pct);
BLDrive.rotateFor(400,rotationUnits::deg,50,velocityUnits::pct);
Intake.startRotateFor(-1500,rotationUnits::deg,50,velocityUnits::pct);
Intake2.startRotateFor(1500,rotationUnits::deg,50,velocityUnits::pct);
task::sleep(15000);