mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Change SmartDashboard type of PIDBase.cpp to match PIDBase.java (#1470)
This commit is contained in:
committed by
Peter Johnson
parent
6d4326a560
commit
ff58c5156a
@@ -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); });
|
||||
|
||||
Reference in New Issue
Block a user