diff --git a/src/main/java/frc/robot/subsystem/Lanceur.java b/src/main/java/frc/robot/subsystem/Lanceur.java index b34b5b0..9e457e4 100644 --- a/src/main/java/frc/robot/subsystem/Lanceur.java +++ b/src/main/java/frc/robot/subsystem/Lanceur.java @@ -78,7 +78,7 @@ public class Lanceur extends SubsystemBase { log.motor("shooter-wheel") .voltage( appliedVoltage.mut_replace( - lanceur4.get() * RobotController.getBatteryVoltage(), Volts)) + lanceur4.getAppliedOutput() * lanceur4.getBusVoltage(), Volts)) .angularPosition(angle.mut_replace(lanceur4.getEncoder().getPosition(), Rotations)) .angularVelocity( velocity.mut_replace(lanceur4.getEncoder().getVelocity(), RotationsPerSecond));