mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Looks like a race condition happened in the landing of the examples PR and #8479 which caused some of the python examples to fail.
This commit is contained in:
@@ -242,8 +242,8 @@ class Drivetrain:
|
||||
# simulation, and write the simulated positions and velocities to our
|
||||
# simulated encoder and gyro.
|
||||
self.drivetrainSimulator.setInputs(
|
||||
self.leftLeader.get() * wpilib.RobotController.getInputVoltage(),
|
||||
self.rightLeader.get() * wpilib.RobotController.getInputVoltage(),
|
||||
self.leftLeader.getDutyCycle() * wpilib.RobotController.getInputVoltage(),
|
||||
self.rightLeader.getDutyCycle() * wpilib.RobotController.getInputVoltage(),
|
||||
)
|
||||
self.drivetrainSimulator.update(0.02)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user