View Single Post
  #3   Spotlight this post!  
Unread 06-02-2009, 09:46
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
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();