[wpilib] AnalogPotentiometer: provide scaled value to Dashboard (#2824)

Previously this sent just the raw analog value; the scaled value is likely what users expect.

Co-authored-by: Corey Applegate <coreya@centralmcgowan.com>
This commit is contained in:
cpapplefamily
2020-11-01 00:27:05 -05:00
committed by GitHub
parent e019c735e1
commit 7b7548196a
2 changed files with 3 additions and 2 deletions

View File

@@ -44,5 +44,6 @@ double AnalogPotentiometer::Get() const {
double AnalogPotentiometer::PIDGet() { return Get(); }
void AnalogPotentiometer::InitSendable(SendableBuilder& builder) {
m_analog_input->InitSendable(builder);
builder.AddDoubleProperty(
"Value", [=]() { return Get(); }, nullptr);
}