When autonomous is used, the variables seem to not move/ not follow one another. They do one action and all the other variables are skipped.
here is an example of a drive forward command and a turn right command
anytime they are called, they do not do anything.
we have a four motor drive train and want all the motors to work at the same time.
float degreesFWD = inchesFWD*35.277;
leftMotor1.spinFor(forward, degreesFWD, degrees, false);
rightMotor1.spinFor(forward, degreesFWD, degrees, false);
leftMotor2.spinFor(forward, degreesFWD, degrees);
rightMotor2.spinFor(forward, degreesFWD, degrees);
}
void turnRT(float inchesFWD){
float degreesFWD = inchesFWD*1.715625;
leftMotor1.spinFor(forward, degreesFWD, degrees, false);
rightMotor1.spinFor(reverse, degreesFWD, degrees);
leftMotor2.spinFor(forward, degreesFWD, degrees,false);
rightMotor2.spinFor(reverse, degreesFWD, degrees);
}