Persist SmartDashboard values across power cycle

I have a bunch of calibration values that during practice (or a calibration session on the practice field), the rio will write to the smart dashboard.

Later, during Teleop, those values will be read back from the dashboard to apply calibration values when driving the hardware.

How do I persist these values across the rio being power cycled? IE, when the rio starts back up, the previously calibrated values from the dashboard are re-read during teleop so that everything ‘just works’ without recalibration.


The Preferences class provides a nice API for saving and restoring values, which can be edited on the dashboard. Alternately you can use the networktables setPersistant method to make them saved.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.