2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
argos_lib::SwerveHomeStorageInterface Class Referenceabstract

Interface capable of saving and loading module home positions from persistent storage. More...

#include <homing_interface.h>

Inheritance diagram for argos_lib::SwerveHomeStorageInterface:
argos_lib::SwerveFSHomingStorage argos_lib::swerve::NetworkTablesHomingStorage

Public Member Functions

virtual bool Save (const argos_lib::swerve::SwerveModulePositions &homePosition)=0
 Save home position to persistent storage.
 
virtual std::optional< argos_lib::swerve::SwerveModulePositionsLoad ()=0
 Load home position from persistent storage.
 

Detailed Description

Interface capable of saving and loading module home positions from persistent storage.

Member Function Documentation

◆ Load()

virtual std::optional< argos_lib::swerve::SwerveModulePositions > argos_lib::SwerveHomeStorageInterface::Load ( )
pure virtual

Load home position from persistent storage.

Returns
Poisitions from persistent storage or std::nullopt if load failed or no positions were previously stored

Implemented in argos_lib::SwerveFSHomingStorage, and argos_lib::swerve::NetworkTablesHomingStorage.

◆ Save()

virtual bool argos_lib::SwerveHomeStorageInterface::Save ( const argos_lib::swerve::SwerveModulePositions homePosition)
pure virtual

Save home position to persistent storage.

Parameters
homePositionPositions to store
Returns
true Save successful
false Error saving

Implemented in argos_lib::SwerveFSHomingStorage, and argos_lib::swerve::NetworkTablesHomingStorage.


The documentation for this class was generated from the following file: