Beginner Text Coding Help

I am new to teaching robotics, and I am having trouble with text coding in the V5 program. I am using the speedbot template, with no gyro. I am trying to move the drivetrain forward using auto fill (and without). When I type the line of code

drivetrain.driveFor(forward, 30, mm);

I am getting an error at the period. Everything I have found in helping includes the period. Anyone have any suggestions?

Is your drivetrain object named drivetrain or Drivetrain? CPP might be getting confused since there is an object type of drivetrain in the vex class (or so I think, I just use 4 motors for my drivetrain still)

1 Like

It is “Drivetrain” but when I use this, it doesn’t recognize it or the forward command. With “drivetrain” it only has an issue with the"."

void autonomous(void) {
//Drivetrain goes backwards, pushes block in, then goes forward)
Drivetrain.driveFor(reverse,8,inches),
Drivetrain.driveFor(forward,12,inches);

Try Something like this.

Send a copy of the program so we can get a better understanding of whats wrong.