View Single Post
  #8   Spotlight this post!  
Unread 17-02-2015, 19:35
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

Can you show us your code right now? Otherwise, tell me the type of drive you are using.

Tank Drive:
Code:
Joystick stick1, stick2;
double stick1val,stick2val;

stick1val = Math.pow(stick1.getX(),3);
stick2val = Math.pow(stick2.getY(),3);

chassis.tankDrive(stick1val, stick2val);
Mecanum Drive:
Code:
double magnitude = Math.pow(driveStick.getMagnitude(),3); 
chassis.mecanumDrive_Polar(magnitude, driveStick.getDirectionDegrees(), driveStick.getRotationDirection());
Reply With Quote