This commit is contained in:
Antoine PerreaultE 2024-02-21 18:27:15 -05:00
commit f5919eb7f3

View File

@ -78,7 +78,7 @@ public class Lanceur extends SubsystemBase {
log.motor("shooter-wheel") log.motor("shooter-wheel")
.voltage( .voltage(
appliedVoltage.mut_replace( appliedVoltage.mut_replace(
lanceur4.get() * RobotController.getBatteryVoltage(), Volts)) lanceur4.getAppliedOutput() * lanceur4.getBusVoltage(), Volts))
.angularPosition(angle.mut_replace(lanceur4.getEncoder().getPosition(), Rotations)) .angularPosition(angle.mut_replace(lanceur4.getEncoder().getPosition(), Rotations))
.angularVelocity( .angularVelocity(
velocity.mut_replace(lanceur4.getEncoder().getVelocity(), RotationsPerSecond)); velocity.mut_replace(lanceur4.getEncoder().getVelocity(), RotationsPerSecond));