LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
okapi::RotarySensor Class Referenceabstract

#include <rotarySensor.hpp>

Inheritance diagram for okapi::RotarySensor:
okapi::ControllerInput< double > okapi::ContinuousRotarySensor okapi::Potentiometer okapi::ADIEncoder okapi::ADIGyro okapi::IMU okapi::IntegratedEncoder okapi::RotationSensor

Public Member Functions

virtual ~RotarySensor ()
 
virtual double get () const =0
 Get the current sensor value.
 
- Public Member Functions inherited from okapi::ControllerInput< double >
virtual double controllerGet ()=0
 Get the sensor value for use in a control loop.
 

Detailed Description

Definition at line 12 of file rotarySensor.hpp.

Constructor & Destructor Documentation

◆ ~RotarySensor()

virtual okapi::RotarySensor::~RotarySensor ( )
virtual

Member Function Documentation

◆ get()

virtual double okapi::RotarySensor::get ( ) const
pure virtual

Get the current sensor value.

Returns
the current sensor value, or PROS_ERR on a failure.

Implemented in okapi::ADIEncoder, okapi::ADIGyro, okapi::IMU, okapi::IntegratedEncoder, okapi::Potentiometer, and okapi::RotationSensor.


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