Change SmartDashboard type of PIDBase.cpp to match PIDBase.java (#1470)

This commit is contained in:
Nicolas Machado
2018-12-07 22:40:31 -05:00
committed by Peter Johnson
parent 6d4326a560
commit ff58c5156a

View File

@@ -234,7 +234,7 @@ void PIDBase::Reset() {
void PIDBase::PIDWrite(double output) { SetSetpoint(output); }
void PIDBase::InitSendable(SendableBuilder& builder) {
builder.SetSmartDashboardType("PIDBase");
builder.SetSmartDashboardType("PIDController");
builder.SetSafeState([=]() { Reset(); });
builder.AddDoubleProperty("p", [=]() { return GetP(); },
[=](double value) { SetP(value); });