View Single Post
  #11   Spotlight this post!  
Unread 20-01-2015, 04:59
timytamy's Avatar
timytamy timytamy is offline
Registered User
AKA: Tim
FRC #3132 (The Thunder Down Under)
Team Role: Electrical
 
Join Date: Nov 2009
Rookie Year: 2010
Location: Australia
Posts: 293
timytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant futuretimytamy has a brilliant future
Re: Drive System Control Compensation

Quote:
Originally Posted by gpetilli View Post
We typically do
x = joyx * abs(joyx); y = joyy * abs(joyy)

this squares the input giving a parabolic response while maintaining sign.
The wpilib actually has this built in. If you call the arcadeDrive (or tankDrive) method, one of the parameters is a boolean "squaredInputs", which does pretty much what your doing.

eg:
Code:
driveSys.arcadeDrive(joyL.getY(), joyR.getX(), true);
__________________
Tim W
FIRST® Team 3132 - The Thunder Down Under
Sydney, Australia
Website | Facebook | Youtube