[wpilib] Add DeadbandElimination forwarding to PWMMotorController (#3714)

This commit is contained in:
sciencewhiz
2021-11-09 21:24:47 -08:00
committed by GitHub
parent 3be0c1217a
commit 4d78def31e
3 changed files with 25 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ int PWMMotorController::GetChannel() const {
return m_pwm.GetChannel();
}
void PWMMotorController::EnableDeadbandElimination(bool eliminateDeadband) {
m_pwm.EnableDeadbandElimination(eliminateDeadband);
}
PWMMotorController::PWMMotorController(std::string_view name, int channel)
: m_pwm(channel, false) {
wpi::SendableRegistry::AddLW(this, name, channel);