}));
}
- // Hood
+ // shoot focus mode: reduces drive current
if (spindexer != null) {
- // Set the hood down -- for safety measures under trench
controller.get(PS5Button.RB).onTrue(new InstantCommand(() -> shootFocus(true)))
.onFalse(new InstantCommand(()-> shootFocus(false)));
}
if (turnOn) {
System.out.println("Shooting is now Focused");
spindexer.setNewCurrentLimit(SpindexerConstants.currentLimit);
- drive.applyNewModuleCurrents(DriveConstants.STEER_PEAK_CURRENT_LIMIT, DriveConstants.DRIVE_PEAK_CURRENT_LIMIT * 0.25
- );
+ drive.applyNewModuleCurrents(DriveConstants.STEER_PEAK_CURRENT_LIMIT,
+ DriveConstants.DRIVE_PEAK_CURRENT_LIMIT * 0.25);
} else {
System.out.println("Shooting back to normal (From focus)");
spindexer.setNewCurrentLimit(SpindexerConstants.currentLimit);
- drive.applyNewModuleCurrents(DriveConstants.STEER_PEAK_CURRENT_LIMIT, DriveConstants.DRIVE_PEAK_CURRENT_LIMIT);
+ drive.applyNewModuleCurrents(DriveConstants.STEER_PEAK_CURRENT_LIMIT,
+ DriveConstants.DRIVE_PEAK_CURRENT_LIMIT);
}
}
public default void updateInputs(GyroIOInputs inputs) {}
/** returns the yaw status signal for time-synced odometry. */
- public default StatusSignal<?> getYawSignal() { return null; }
+ public StatusSignal<?> getYawSignal();
/**
* set the yaw angle of the gyro.