Log in

View Full Version : Initializing errors


BrandonD-1528
04-02-2009, 15:00
class RobotDemo : public SimpleRobot
{
RobotDemo(void)
{ // put initialization code here
Jaguar leftMotor(1); // driv
Victor rightMotor(2); // driv
Joystick leftStick(1); // driv
Joystick rightStick(2); // driv
Jaguar shootMotor(3); // shooter
}

if (leftStick.GetY() >= (255 - k)) //if left joystick is near max leftMotor.rawset(LeftStick.GetY());
leftMotor.rawset(leftStick.GetY());
if (leftStick.GetY() > leftmotor.rawget()) if (rightStick.GetY() >= (255 - k)) //if right joystick is near max
rightMotor.rawset(rightStick.GetY());
We are having trouble declaring our leftMotor, rightMotor, leftStick, and rightStick functions. Could someone please help us?