Quote:
Originally Posted by gpetilli
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);