mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpilib] Rename MotorController setDutyCycle() to setThrottle() (#8720)
Fixes #8716.
This commit is contained in:
@@ -32,7 +32,7 @@ class Drivetrain(commands2.Subsystem):
|
||||
|
||||
# Set up the differential drive controller
|
||||
self.drive = wpilib.DifferentialDrive(
|
||||
self.leftMotor.setDutyCycle, self.rightMotor.setDutyCycle
|
||||
self.leftMotor.setThrottle, self.rightMotor.setThrottle
|
||||
)
|
||||
|
||||
# TODO: these don't work
|
||||
|
||||
Reference in New Issue
Block a user