mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilib] Rename MotorController setDutyCycle() to setThrottle() (#8720)
Fixes #8716.
This commit is contained in:
@@ -43,4 +43,4 @@ class MyRobot(wpilib.TimedRobot):
|
||||
wpilib.SmartDashboard.putNumber("Encoder", self.encoder.getDistance())
|
||||
|
||||
def teleopPeriodic(self):
|
||||
self.motor.setDutyCycle(self.joystick.getY())
|
||||
self.motor.setThrottle(self.joystick.getY())
|
||||
|
||||
Reference in New Issue
Block a user