Thread: Set Motor Speed
View Single Post
  #2   Spotlight this post!  
Unread 18-02-2010, 12:56
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,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: Set Motor Speed

You can cube the output of the joystick, or use some function like that. (Cubing is important by the way, because the odd number of multiplies preserves the negative sign. If you only squared then -1 would become 1)
This gives you a slower speed increase when the joystick is close to neutral, and a greater increase when it's almost at the end of it's range.
Attached Thumbnails
Click image for larger version

Name:	Xcubed.jpg
Views:	77
Size:	2.8 KB
ID:	8710  Click image for larger version

Name:	SpeedCubed.jpg
Views:	55
Size:	10.2 KB
ID:	8711  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-02-2010 at 13:24.
Reply With Quote