Well sometimes when I run my program, it doesn’t run correctly and seems to mix up the order of my programs. I have no idea how to fix it, so I’m starting with changing my technique to see if that helps
At our first tournament, we ran the program (7 cube) before a match, and it worked fine. We went to the match and used it, but it drove straight into the other teams side, disqualifying us for autonomous. The next practice I thought I figured it out. I re-downloaded the program before every run, and it seemed to work. Then, last tournament, the problem happened again but luckily off field. I had even re-downloaded it and everything!
Heres an example of what I use for my drive train:
// Causes the robot to drive fowards x degrees at y velocity..
void forward(int velocity, int degrees)
// Sets the velocity of the drive train motors.
DriveFR.rotateFor(degrees, deg, false);
DriveBR.rotateFor(degrees, deg, false);
DriveFL.rotateFor(degrees, deg, false);
DriveBL.rotateFor(degrees, deg, true);