Controller1.ButtonUp.pressed(velocityIncrease(120));
int main() {
vexcodeInit(); // Initializing Robot Configuration. DO NOT REMOVE!
Motor1.setVelocity(motorVelocity, rpm);
Controller1.ButtonUp.pressed(velocityIncrease(120));
Controller1.ButtonR2.pressed(motorBackwards);
Controller1.ButtonL2.pressed(motorBackwards);
screenUpdate();
}
void velocityIncrease(int num) {
motorVelocity = motorVelocity + num;
if (motorVelocity > 600) {
motorVelocity = 600;
}
Motor1.setVelocity(motorVelocity, rpm);
screenUpdate();
}
New to this so just trying to figure out whats wrong