View Single Post
  #6   Spotlight this post!  
Unread 12-03-2011, 00:02
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Joystick question

Take axis 1 and 2 (or just 2 if you're doing tank drive) and divide them by ((Axis 3 - 1)/2)

Basically make axis 3 from 0 to 1 and divide your other axes by it.

If you're set on coercing it, you can do the same thing, then negate the value and put the negated value for the lower bound and the normal value for the upper bound.
Reply With Quote