mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[wpilib] Rename MotorController setDutyCycle() to setThrottle() (#8720)
Fixes #8716.
This commit is contained in:
@@ -244,8 +244,8 @@ class Drivetrain:
|
||||
# simulation, and write the simulated positions and velocities to our
|
||||
# simulated encoder and gyro.
|
||||
self.drivetrainSimulator.setInputs(
|
||||
self.leftLeader.getDutyCycle() * wpilib.RobotController.getInputVoltage(),
|
||||
self.rightLeader.getDutyCycle() * wpilib.RobotController.getInputVoltage(),
|
||||
self.leftLeader.getThrottle() * wpilib.RobotController.getInputVoltage(),
|
||||
self.rightLeader.getThrottle() * wpilib.RobotController.getInputVoltage(),
|
||||
)
|
||||
self.drivetrainSimulator.update(0.02)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user