View Single Post
  #5   Spotlight this post!  
Unread 17-02-2015, 17:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,043
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Acceleration Curve java help

Quote:
Originally Posted by JacobD View Post
I'm assuming you want something like this.

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

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.
Since the OP has not responded to requests to clarify the nature of the problem he is interested in solving, you might want to qualify your suggestion with an explanation of what problem it is intended to solve... lest he take your suggestion and apply it to a problem different from what you inferred.

You might also caution that your suggestion maps the domain -1..+1 to the range 0.769..1.3


Reply With Quote