2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
|
Interface capable of saving and loading home positions from persistent storage. More...
#include <homing_storage_interface.h>
Public Member Functions | |
virtual bool | Save (const T &homePosition)=0 |
Save home position to persistent storage. More... | |
virtual std::optional< T > | Load ()=0 |
Load home position from persistent storage. More... | |
Interface capable of saving and loading home positions from persistent storage.
T | Type of the home position. Should be a units type |
|
pure virtual |
Load home position from persistent storage.
Implemented in FSHomingStorage< T >, and FSHomingStorage< units::degree_t >.
|
pure virtual |
Save home position to persistent storage.
homePosition | Position to store |
Implemented in FSHomingStorage< T >.