Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 4090b5b

Browse files
committed
moved initDefaultCommand to top of drivetrain as per request
1 parent 2e48242 commit 4090b5b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems/Drivetrain.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public class Drivetrain extends Subsystem implements PIDOutput, PIDSource {
4242

4343
private double pidOut = 0;
4444

45+
public void initDefaultCommand() {
46+
setDefaultCommand(new TeleopDrive());
47+
}
48+
4549
/**
4650
* Updates the PIDControllers' PIDConstants based on SmartDashboard values
4751
*/
@@ -203,10 +207,6 @@ public void resetGyro() {
203207
dtGyro.reset();
204208
}
205209

206-
public void initDefaultCommand() {
207-
setDefaultCommand(new TeleopDrive());
208-
}
209-
210210
/**
211211
* Disables the turnPID PIDController used for turning
212212
*/

0 commit comments

Comments
 (0)