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

Commit f09460b

Browse files
committed
bugfix in shiftDriveType
1 parent 45465e9 commit f09460b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/ShiftDriveType.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
public class ShiftDriveType extends Command {
1313

1414
Timer tim;
15+
boolean arcadeDrive;
1516

1617
public ShiftDriveType() {
1718
// Use requires() here to declare subsystem dependencies
@@ -23,11 +24,12 @@ protected void initialize() {
2324
tim = new Timer();
2425
tim.reset();
2526
tim.start();
27+
arcadeDrive = Robot.getBool("Arcade Drive", true);
2628
}
2729

2830
// Called repeatedly when this Command is scheduled to run
2931
protected void execute() {
30-
SmartDashboard.putBoolean("Arcade Drive", !SmartDashboard.getBoolean("Arcade Drive", false));
32+
SmartDashboard.putBoolean("Bool/Arcade Drive", !arcadeDrive);
3133
}
3234

3335
// Make this return true when this Command no longer needs to run execute()

0 commit comments

Comments
 (0)