|
Valkyrie 2026
|
Core BaseSensor that isn't templated. More...
#include <valkyrie/sensors/BaseSensor.h>
Public Member Functions | |
| virtual void | Refresh ()=0 |
| virtual void | Calculate () |
Static Public Attributes | |
| static constexpr units::millisecond_t | LOOP_PERIOD = frc::TimedRobot::kDefaultPeriod / 2 |
Core BaseSensor that isn't templated.
This class is mainly meant so that in hierarchies with sensors extending other sensors, like LaserProximitySensor, AddPeriodic is only called once for the entire hierarchy through virtual inheritance.
|
inlinevirtual |
|
pure virtual |
Implemented in valor::sensors::BaseSensor< T >, valor::sensors::BaseSensor< bool >, valor::sensors::BaseSensor< double >, valor::sensors::BaseSensor< int >, valor::sensors::BaseSensor< LaserProximityData >, valor::sensors::BaseSensor< std::optional< frc::Pose3d > >, valor::sensors::BaseSensor< std::optional< PoseEstimate > >, valor::sensors::BaseSensor< units::ampere_t >, valor::sensors::BaseSensor< units::millimeter_t >, and valor::sensors::LaserProximitySensor.