View Single Post
  #6   Spotlight this post!  
Unread 12-02-2011, 22:13
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: CIM driving 2x faster than others

Quick glance this looks suspect. For full speed you have '-' in front of xbox.GetLeftY(). And it is positive in the half-speed version.

Code:
		if (!xbox.GetLeftBumper()){
				myRobot.MecanumDrive_Cartesian(xbox.GetLeftX(), xbox.GetRightX(), -xbox.GetLeftY(), 0); //Mecanum drive at full speed
			}
			//																	forward/back
			else{
				myRobot.MecanumDrive_Cartesian(xbox.GetLeftX()/2, xbox.GetRightY()/2, xbox.GetLeftY()/2, 0);//Mecanumdrive at half speed
Reply With Quote