Is this code right

this is a part of my code that says there is 6 errors in it can you help

int main() {
  // Initializing Robot Configuration. DO NOT REMOVE!
  vexcodeInit();

  // Define motors
  motor motorgroup3 = motor(PORT3, ratio18_1, true);
motorgroup3.spin(Forward, slowspeed, velocityUnits::pct)
motorgroup3.stop()

1 Like

Make sure that you add semicolons after every command that you give, and that you are giving valid parameters, with the correct format of:

Motor.spinFor(directionType, rotation, units);

or

Motor.spin(directionType, voltage, volt);

For example:

MotorGroup3.spinFor(forward, 90, degrees);

or

MotorGroup3.spin(forward, 3.0, volt);
1 Like