[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

@@ -159,7 +159,7 @@ public class AnalogPotentiometer implements Potentiometer, Sendable, AutoCloseab
@Override
public void initSendable(SendableBuilder builder) {
if (m_analogInput != null) {
m_analogInput.initSendable(builder);
builder.addDoubleProperty("Value", this::get, null);
}
}