template<typename T>
okapi::ControllerInput class

Contents

Public functions

auto controllerGet() -> T pure virtual
Get the sensor value for use in a control loop.

Function documentation

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

Get the sensor value for use in a control loop.

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

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