Autonomous Errors VexCode

When I’m doing this I’m getting an error, vexcode.

void autonomous(void)  {


FrontLeft.setVelocity(50, pct);
FrontRight.setVelocity(50, pct);

FrontLeft.spin();
FrontRight.spin();
vex::task::sleep(1000);
FrontLeft.stop();
FrontRight.stop();
}

According to the Problems tab, I have 2. They are the .spin commands. Any reasons?

I believe you need to specify which direction the motors are spinning in. Either fwd for forward, or reverse for reverse.

2 Likes

Yeah, that was it, gosh i’m stupid, thanks!

1 Like