Virtual Code error for presets

When building the code in vex v5 software it lets me build just fine but when I try to use the Virtual Skills it gives me a error for my “rotateFor”

void driveback(double distance, int speed){
RightGroup.rotateFor(distance ,rotationUnits:: rev, speed, velocityUnits:: pct, true);
LeftGroup.rotateFor(distance ,rotationUnits:: rev, speed, velocityUnits:: pct, true);
}

void leftpivot(double distance, int speed){
RightGroup.rotateFor(distance ,rotationUnits:: rev, 0, velocityUnits:: pct,true);
LeftGroup.rotateFor(distance ,rotationUnits:: rev, speed, velocityUnits:: pct, false);
}

void rightpivot(double distance, int speed){
RightGroup.rotateFor(distance ,rotationUnits:: rev, speed, velocityUnits:: pct, false);
LeftGroup.rotateFor(distance ,rotationUnits:: rev, 0, velocityUnits:: pct,true);
}

void intakeIn(double distance, int speed){
Intake.rotateFor(distance,rotationUnits:: rev, speed, velocityUnits:: pct, false);
}

void intakeOut(double distance, int speed){
Intake.rotateFor(distance,rotationUnits:: rev, speed, velocityUnits:: pct);
}

What error is it giving you?

FYI, rotateFor has been removed from recent SDKs.

5 Likes

It’s likely just the rotateFors as @jpearman pointed out. Try changing all instances of rotateFor with spinFor, and see if it fixes the issue.