View Single Post
  #12   Spotlight this post!  
Unread 18-02-2015, 01:41
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,574
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Acceleration Curve java help

For those trying to learn from this thread, the non-whitespace differences between the intitial (21:04) and updated (21:27) code are:
Code:
# diff -w initial.txt updated.txt
14,15c14,15
< Joystick leftStick; // set to ID 1 in DriverStation
< Joystick rightStick; // set to ID 2 in DriverStation
---
>     Joystick leftStick = new Joystick(0);  // set to ID 0 in DriverStation
>     Joystick rightStick = new Joystick(1); // set to ID 1 in DriverStation
16a17
>     double leftStickVal,rightStickVal;
37c38,42
< myRobot.tankDrive(leftStick, rightStick);
---
>
>                 leftStickVal = Math.pow(leftStick.getY(),3);
>                 rightStickVal= Math.pow(rightStick.getY(),3);
>
>               myRobot.tankDrive(leftStickVal, rightStickVal);
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote