View Single Post
  #2   Spotlight this post!  
Unread 22-11-2011, 09:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Confusion with turning

The y value tells Arcade to move forward at half speed while the x tells it how much to turn (quarter speed) and in what direction (left or right), so the robot will move forward in an arc as it turns. To turn in place, make y=0.

To overcome the mass and friction of the robot it takes a little bit of the low-end power, so maybe 20% (.2) of the forward power will simply get the robot moving slightly (depends on the robot).

To turn the opposite way leave y alone and make x negative, i.e., x=-0.25

Make y negative to backup while turning.


If you use Tank Drive instead of Arcade, then you might reverse the two inputs to get the opposite effect, but the inputs would typically represent two y joysticks, rather than the single joystick of Arcade. In autonomous of course there are no joysticks, but many people still like to think of it as if a driver were controlling the robot.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-11-2011 at 10:56. Reason: x/y dsylexia
Reply With Quote