10 #ifndef YARP_DEV_IANALOGSENSOR_H
11 #define YARP_DEV_IANALOGSENSOR_H
constexpr yarp::conf::vocab32_t VOCAB_IANALOG
contains the definition of a Vector type
A generic interface to sensors (gyro, a/d converters).
virtual int calibrateSensor()=0
Calibrates the whole sensor.
virtual int getState(int ch)=0
Check the state value of a given channel.
virtual int read(yarp::sig::Vector &out)=0
Read a vector from the sensor.
virtual int getChannels()=0
Get the number of channels of the sensor.
virtual int calibrateChannel(int ch)=0
Calibrates one single channel.
virtual int calibrateSensor(const yarp::sig::Vector &value)=0
Calibrates the whole sensor, using an vector of calibration values.
virtual int calibrateChannel(int ch, double value)=0
Calibrates one single channel, using a calibration value.
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
The main, catch-all namespace for YARP.