mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilib] Rename MotorController setDutyCycle() to setThrottle() (#8720)
Fixes #8716.
This commit is contained in:
@@ -27,6 +27,6 @@ class Robot : public wpi::TimedRobot {
|
||||
wpi::Timer m_timer;
|
||||
|
||||
wpi::DifferentialDrive m_drive{
|
||||
[&](double output) { m_leftMotor.SetDutyCycle(output); },
|
||||
[&](double output) { m_rightMotor.SetDutyCycle(output); }};
|
||||
[&](double output) { m_leftMotor.SetThrottle(output); },
|
||||
[&](double output) { m_rightMotor.SetThrottle(output); }};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user