projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change variables 'left' and 'right' that store joystick values to 'thrust' and 'twist'
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
driving
/
JoystickDrive.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/driving/JoystickDrive.java
b/src/org/usfirst/frc/team3501/robot/commands/driving/JoystickDrive.java
index cea1b6b919bbe92e36869d576c1eb7aa8ba70e22..d12614f06ca99b2fb64a1c03173f39037c453a7a 100755
(executable)
--- a/
src/org/usfirst/frc/team3501/robot/commands/driving/JoystickDrive.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/driving/JoystickDrive.java
@@
-20,10
+20,10
@@
public class JoystickDrive extends Command {
@Override
protected void execute() {
@Override
protected void execute() {
- final double
left = OI.lef
tJoystick.getY();
- final double
right = OI.rightJoystick.getY
();
+ final double
thrust = OI.righ
tJoystick.getY();
+ final double
twist = OI.rightJoystick.getTwist
();
- Robot.getDriveTrain().joystickDrive(
left, righ
t);
+ Robot.getDriveTrain().joystickDrive(
-thrust, -twis
t);
}
@Override
}
@Override