Valkyrie 2026
Loading...
Searching...
No Matches
valor::sensors::BaseSensorCore Class Referenceabstract

Core BaseSensor that isn't templated. More...

#include <valkyrie/sensors/BaseSensor.h>

Inheritance diagram for valor::sensors::BaseSensorCore:
valor::sensors::BaseSensor< std::optional< PoseEstimate > > valor::sensors::BaseSensor< double > valor::sensors::BaseSensor< int > valor::sensors::BaseSensor< units::ampere_t > valor::sensors::BaseSensor< bool > valor::sensors::BaseSensor< std::optional< frc::Pose3d > > valor::sensors::BaseSensor< LaserProximityData > valor::sensors::BaseSensor< units::millimeter_t > valor::sensors::BaseSensor< T >

Public Member Functions

virtual void Refresh ()=0
virtual void Calculate ()

Static Public Attributes

static constexpr units::millisecond_t LOOP_PERIOD = frc::TimedRobot::kDefaultPeriod / 2

Detailed Description

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.

Member Function Documentation

◆ Calculate()

virtual void valor::sensors::BaseSensorCore::Calculate ( )
inlinevirtual

◆ Refresh()


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