View Single Post
  #1   Spotlight this post!  
Unread 06-02-2009, 09:15
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
all most thar, plez help

All of our teams vetrens mebers graduwated last year and we have no programing mentor, were so close to geting our cood working, were down to the last 5 err0rs and eney help would be gratly apresheated.

Code:
if (leftStick.GetY() >= (1 - k))	
	{	
		leftMotor.set(leftStick.GetY());
	}
error: 'leftmotor' undeclared (first use this function)

Code:
if ((leftStick(1).GetY() < (1 - k)) && (leftStick.GetY() > k))	
	{	
		if (leftStick.GetY() > leftMotor.get())
		{
error:no mach for call to '(joystik)(int)'

Code:
if (rightStick.GetY() >= (1 - k))		
 
	{	
		rightMotor.set(rightStick.GetY());
	}
error: rightStick undeclared(first use this function)
error: rightMotor undeclared(first use this function)
Code:
Start_Robot_Class(RobotDemo);
error:new types may not be defined in a return type.
__________________
Brandon Dusseau (website)
Monroe Trojan Robotics mentor
Software Engineer
Michigan Tech alumnus