|
Re: all most thar, plez help
It sounds to me as though you have not declared your left and right motors
you would have to use something like:
Jaguar leftMotor*;
Jaguar rightMotor*;
This goes in the class components, at the top of the RobotDemo class
then you put:
leftMotor = new Jaguar(1);
rightMotor = new Jaguar(2);
You put this with the other declarations in the "RobotDemo" class constructor.
also, it sounds like your right joystick is also not defined. you would have to use
Joystick rightStick*;
rightStick = new Joystick(2);
in the same two places mentioned above.
Your second error is because you're calling leftStick(1).GetY(), instead of just leftStick.GetY();
|