mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user