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
/
subsystems
/
DriveTrain.java
diff --git
a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
index 5389b235380b3a081a6c9c7b34b4e1b72b93edfe..4bbda0fb1168a8ef9e490d356c771e5f08626779 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
+++ b/
src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
@@
-1,6
+1,7
@@
package org.usfirst.frc.team3501.robot.subsystems;
import org.usfirst.frc.team3501.robot.Constants;
package org.usfirst.frc.team3501.robot.subsystems;
import org.usfirst.frc.team3501.robot.Constants;
+import org.usfirst.frc.team3501.robot.commands.driving.JoystickDrive;
import com.ctre.CANTalon;
import com.ctre.CANTalon;
@@
-46,8
+47,8
@@
public class DriveTrain extends Subsystem {
robotDrive.tankDrive(left, right);
}
robotDrive.tankDrive(left, right);
}
- public void joystickDrive(final double
left, final double righ
t) {
- robotDrive.
tankDrive(left, righ
t);
+ public void joystickDrive(final double
thrust, final double twis
t) {
+ robotDrive.
arcadeDrive(thrust, twis
t);
}
public void stop() {
}
public void stop() {
@@
-119,6
+120,7
@@
public class DriveTrain extends Subsystem {
@Override
protected void initDefaultCommand() {
@Override
protected void initDefaultCommand() {
+ setDefaultCommand(new JoystickDrive());
}
}
}
}