Use of undeclared identifier

We get an error use of undeclared identifier ‘FrontLeft’ we have tried everything. It is named the same as it is on the Robot page. If we delete the line it goes to the next line and says the same thing with a different motor.
We hav VCS version 1.0.6

Are you giving it a value?
e.g. int variable = 0

Yes
FrontLeft.spin (directionType::fwd, -100, velocityUnits::pct);

Could you post some of the code.

Maybe it is something with the previous line.

//Base Code

        FrontLeft.spin (directionType::fwd, -100, velocityUnits::pct);

        BackLeft.spin (directionType::fwd, -100, velocityUnits::pct);

        FrontRight.spin (directionType::fwd, 100, velocityUnits::pct);

        BackRight.spin (directionType::fwd, 100, velocityUnits::pct);

3 things:

  • I’m not sure, but the compiler might be not liking the space between .spin and (
  • Make sure that robot-config.h is still correct. We ran into a few bugs a while ago in VCS where that file would erase itself.
  • If neither of those work, then possibly try using vex::in front of directiontype and velocityunits

Check at the top of your code file to make sure that you didn’t delete the #include for the configuration file.