2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
|
Interface capable of saving and loading home positions from persistent storage. More...
#include <homing_interface.h>
Public Member Functions | |
virtual bool | Save (const T &homePosition)=0 |
Save home position to persistent storage. | |
virtual std::optional< T > | Load ()=0 |
Load home position from persistent storage. | |
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 argos_lib::FSHomingStorage< T >, and argos_lib::FSHomingStorage< units::degree_t >.
|
pure virtual |
Save home position to persistent storage.
homePosition | Position to store |
Implemented in argos_lib::FSHomingStorage< T >.