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

#include <controllerInput.hpp>

Public Member Functions

virtual T controllerGet ()=0
 Get the sensor value for use in a control loop.
 

Detailed Description

template<typename T>
class okapi::ControllerInput< T >

Definition at line 9 of file controllerInput.hpp.

Member Function Documentation

◆ controllerGet()

template<typename T >
virtual T okapi::ControllerInput< T >::controllerGet ( )
pure virtual

Get the sensor value for use in a control loop.

This method might be automatically called in another thread by the controller.

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

Implemented in okapi::OffsetableControllerInput, okapi::AbstractButton, okapi::FilteredControllerInput< InputType, FilterType >, okapi::ADIUltrasonic, okapi::DistanceSensor, okapi::OpticalSensor, okapi::ADIEncoder, okapi::ADIGyro, okapi::IMU, okapi::IntegratedEncoder, okapi::Potentiometer, and okapi::RotationSensor.


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