TripleHelixProgramming / Crescendo

Triple Helix's code for the 2024 FRC Crecendo season
MIT License
1 stars 0 forks source link

Enable climber actuator position to persist through robot reboots #125

Closed nlaverdure closed 6 months ago

nlaverdure commented 6 months ago

Loss of this information is expected, as we are only using a relative encoder to control the climber actuator.

Some options for enabling climber actuator position to persist through robot reboots:

  1. Assume that code boots in a state where robot has been properly prepared for a match, and actuator is at kHomePosition

  2. Repeatedly publish current position to RobotPreferences, and set the position using the value from RobotPreferences upon code boot. This is similar to what we do with the swerve module absolute encoders.