Thread: Joystick
View Single Post
  #4   Spotlight this post!  
Unread 24-06-2012, 20:08
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,753
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: Joystick

The joystick value ranges from -1 to 1.
Multiply the joystick value by the percentage of power that you want.

e.g., .5 for 50% or .25 for 25% or .75 for 75% power
So, a joystick value of -1 (full forward) * .75 = -.75 (or 75% of full power)

Using this method will cost power on the turns as well as the straightaways though, and depending on your wheelbase/wheel stickyness/ground surface may make turning difficult.

A better answer is to change the sprocket ratio driving the wheels. Increase the sprocket sizes on the wheels to lower your speed and increase turning torque.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-06-2012 at 20:15.
Reply With Quote