revenu a la normal
This commit is contained in:
@@ -69,7 +69,7 @@ public class Lanceur extends SubsystemBase {
|
||||
new SysIdRoutine.Mechanism(
|
||||
// Tell SysId how to plumb the driving voltage to the motor(s).
|
||||
(Measure<Voltage> volts) -> {
|
||||
lanceur1.setVoltage(volts.in(Volts));
|
||||
lanceur4.setVoltage(volts.in(Volts));
|
||||
},
|
||||
// Tell SysId how to record a frame of data for each motor on the mechanism being
|
||||
// characterized.
|
||||
@@ -78,10 +78,10 @@ public class Lanceur extends SubsystemBase {
|
||||
log.motor("shooter-wheel")
|
||||
.voltage(
|
||||
appliedVoltage.mut_replace(
|
||||
lanceur1.get() * RobotController.getBatteryVoltage(), Volts))
|
||||
.angularPosition(angle.mut_replace(lanceur1.getEncoder().getPosition(), Rotations))
|
||||
lanceur4.get() * RobotController.getBatteryVoltage(), Volts))
|
||||
.angularPosition(angle.mut_replace(lanceur4.getEncoder().getPosition(), Rotations))
|
||||
.angularVelocity(
|
||||
velocity.mut_replace(lanceur1.getEncoder().getVelocity(), RotationsPerSecond));
|
||||
velocity.mut_replace(lanceur4.getEncoder().getVelocity(), RotationsPerSecond));
|
||||
},
|
||||
// Tell SysId to make generated commands require this subsystem, suffix test state in
|
||||
// WPILog with this subsystem's name ("shooter")
|
||||
|
||||
Reference in New Issue
Block a user