View Single Post
  #1   Spotlight this post!  
Unread 04-02-2009, 15:00
BrandonD-1528's Avatar
BrandonD-1528 BrandonD-1528 is offline
Mentor
AKA: Brandon Dusseau
FRC #1528 (Monroe Trojan Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ann Arbor, MI
Posts: 118
BrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the rough
Declaring Errors

Code:
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
	}
Code:
	if (leftStick.GetY() >= (255 - k))          //if left joystick is near max
Code:
leftMotor.rawset(LeftStick.GetY());
Code:
leftMotor.rawset(leftStick.GetY());
Code:
if (leftStick.GetY() > leftmotor.rawget())
Code:
if (rightStick.GetY() >= (255 - k))        //if right joystick is near max
Code:
		rightMotor.rawset(rightStick.GetY());
We are having trouble declaring our leftMotor, rightMotor, leftStick, and rightStick functions. Could someone please help us?
__________________
Brandon Dusseau (website)
Monroe Trojan Robotics mentor
Software Engineer
Michigan Tech alumnus

Last edited by BrandonD-1528 : 04-02-2009 at 16:28.