|
47 | 47 | import frc.robot.commands.drive.XLockCommand; |
48 | 48 | import frc.robot.commands.drive.ZeroGyroCommand; |
49 | 49 | import frc.robot.commands.intake.IntakeOpenLoopCommand; |
50 | | -import frc.robot.commands.magazine.AutonIgnoreColorSensorCommand; |
| 50 | +import frc.robot.commands.magazine.IgnoreColorSensorCommand; |
51 | 51 | import frc.robot.commands.magazine.LowerMagazineOpenLoopCommand; |
52 | 52 | import frc.robot.commands.magazine.ManualEjectCargoReverseCommand; |
53 | 53 | import frc.robot.commands.magazine.PitClearCargoColor; |
@@ -197,6 +197,10 @@ public void zeroClimb() { |
197 | 197 | } |
198 | 198 | } |
199 | 199 |
|
| 200 | + public void autonIgnoreColorSensor(boolean ignore) { |
| 201 | + magazineSubsystem.setAutonIgnoreColorSensor(ignore); |
| 202 | + } |
| 203 | + |
200 | 204 | private void configureTelemetry() { |
201 | 205 | driveSubsystem.registerWith(telemetryService); |
202 | 206 | shooterSubsystem.registerWith(telemetryService); |
@@ -228,9 +232,9 @@ private void configureDriverButtonBindings() { |
228 | 232 |
|
229 | 233 | // Ignore Color Sensor |
230 | 234 | new JoystickButton(driveJoystick, Toggle.LEFT_TOGGLE.id) |
231 | | - .whenPressed(new AutonIgnoreColorSensorCommand(magazineSubsystem, true)); |
| 235 | + .whenPressed(new IgnoreColorSensorCommand(magazineSubsystem, true)); |
232 | 236 | new JoystickButton(driveJoystick, Toggle.LEFT_TOGGLE.id) |
233 | | - .whenReleased(new AutonIgnoreColorSensorCommand(magazineSubsystem, false)); |
| 237 | + .whenReleased(new IgnoreColorSensorCommand(magazineSubsystem, false)); |
234 | 238 |
|
235 | 239 | // Hood Open Loop |
236 | 240 | new JoystickButton(driveJoystick, Trim.RIGHT_Y_POS.id) |
|
0 commit comments