|
2025-Robot
Robot code for 2025 FRC season by Argos, FRC team #1756
|
Saves and loads home positions from filesystem. More...
#include <fs_homing.h>
Public Member Functions | |
| FSHomingStorage (const fs::path &homeFilePath) | |
| Construct a new FSHomingStorage object. | |
| bool | Save (const T &homePosition) override |
| Save home position to persistent storage. | |
| std::optional< T > | Load () override |
| Load home position from persistent storage. | |
Public Member Functions inherited from argos_lib::HomingStorageInterface< T > | |
Private Member Functions | |
| fs::path | GetFilePath () |
Private Attributes | |
| const fs::path | m_homesPath |
Saves and loads home positions from filesystem.
| T | Type of the home position. Should be a units type |
|
inlineexplicit |
Construct a new FSHomingStorage object.
| homeFilePath | Path to save homes to relative to internally-managed root directory |
|
inlineprivate |
|
inlineoverridevirtual |
Load home position from persistent storage.
Implements argos_lib::HomingStorageInterface< T >.
|
inlineoverridevirtual |
Save home position to persistent storage.
| homePosition | Position to store |
Implements argos_lib::HomingStorageInterface< T >.
|
private |