View Single Post
  #4   Spotlight this post!  
Unread 17-02-2015, 17:34
JacobD's Avatar
JacobD JacobD is offline
Registered User
AKA: Jacob
FRC #1672 (Mahwah Robo T-Birds)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2013
Location: New Jersey
Posts: 90
JacobD is an unknown quantity at this point
Re: Acceleration Curve java help

I'm assuming you want something like this.

Code:
double magnitude = Math.pow(2,(driveStick.getMagnitude())-1; 
chassis.mecanumDrive_Polar(magnitude, driveStick.getDirectionDegrees(), driveStick.getRotationDirection());
this should make a pretty decent magnitude:acceleration ratio.

It is an exponential function that increases the speed of the robot when reaching the upper bounds.

You can just edit this so that it works with your drive and controls. Or, if you post the code I will do it for you.

Last edited by JacobD : 17-02-2015 at 19:08.
Reply With Quote