Skip to content

Commit c5a5123

Browse files
committed
the autoSwitch should theoretically work
1 parent 5a588fd commit c5a5123

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -616,19 +616,6 @@ public void configTestDash() {
616616
.withPosition(1, 0)
617617
.withSize(1, 1);
618618

619-
Shuffleboard.getTab("Test")
620-
.add("Start Auton", processorShallowAutonCommand)
621-
.withPosition(3, 0)
622-
.withSize(1, 1);
623-
624-
Shuffleboard.getTab("Test")
625-
.add(
626-
"reAssign Alliance",
627-
new InstantCommand(() -> processorShallowAutonCommand.reassignAlliance())
628-
.ignoringDisable(true))
629-
.withPosition(4, 0)
630-
.withSize(1, 1);
631-
632619
Shuffleboard.getTab("Test")
633620
.add("Zero Wheels", new InstantCommand(() -> driveSubsystem.lockZero(), driveSubsystem))
634621
.withPosition(5, 0)

src/main/java/frc/robot/commands/auton/DefaultAutonCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public DefaultAutonCommand(
2020
ElevatorSubsystem elevatorSubsystem,
2121
String pathName,
2222
Pose2d startPose) {
23+
this.driveSubsystem = driveSubsystem;
2324
path = new DriveAutonCommand(driveSubsystem, "defaultAuton", true, true, false);
2425

2526
addCommands(

src/main/java/frc/robot/commands/auton/ToggleVirtualSwitchCommand.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ public ToggleVirtualSwitchCommand(AutoSwitch autoSwitch) {
1414
public void initialize() {
1515
autoSwitch.toggleVirtualSwitch();
1616
}
17+
18+
@Override
19+
public boolean runsWhenDisabled() {
20+
return true;
21+
}
1722
}

src/main/java/frc/robot/subsystems/auto/AutoSwitch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private AutoCommandInterface getAutoCommand(int switchPos) {
189189

190190
private void configSendableChooser() {
191191
sendableChooser.addOption("00 nonProcessor side, on j,k,l", 0x00);
192-
sendableChooser.setDefaultOption("20 Processor side, on e,d,c", 0x20);
192+
sendableChooser.addOption("20 Processor side, on e,d,c", 0x20);
193193
sendableChooser.setDefaultOption("30 Do Nothing", 0x30);
194194
SmartDashboard.putData("Auto Mode", sendableChooser);
195195
}

0 commit comments

Comments
 (0)