Thread: Autonomous
View Single Post
  #13   Spotlight this post!  
Unread 23-02-2009, 12:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Autonomous

Quote:
Originally Posted by Mark McLeod View Post
The Arcade drive has a second input (X-axis value), that isn't used in the example, but defines the turn amount. An x-axis value of 1.0 for instance will make your robot turn in place. -1.0 makes it turn in the opposite direction. In between values will make it drive in an arc.
That's close enough for people who already know how the Arcade Drive works, but it's not perfectly correct. The robot will try to spin in place with any nonzero x-axis value if the y-axis value is zero. To drive in an arc, add an x-axis-controlled spin to a y-axis-controlled forward or reverse drive.

Yes, negative numbers on the y axis mean forward. That's because the joystick standard has negative forward and positive backward, likely because it was defined with flight simulators in mind.
Reply With Quote