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

#include <continuousRotarySensor.hpp>

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

Public Member Functions

virtual std::int32_t reset ()=0
 Reset the sensor to zero.
 
- Public Member Functions inherited from okapi::RotarySensor
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 11 of file continuousRotarySensor.hpp.

Member Function Documentation

◆ reset()

virtual std::int32_t okapi::ContinuousRotarySensor::reset ( )
pure virtual

Reset the sensor to zero.

Returns
1 on success, PROS_ERR on fail

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


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