SimpleFOClibrary
2.1
|
#include <Sensor.h>
Public Member Functions | |
virtual float | getAngle ()=0 |
virtual float | getVelocity () |
virtual int | needsSearch () |
Sensor abstract class defintion Each sensor needs to have these functions implemented
|
pure virtual |
get current angle (rad)
Implemented in Encoder, HallSensor, MagneticSensorSPI, MagneticSensorI2C, and MagneticSensorAnalog.
|
virtual |
get current angular velocity (rad/s)
Reimplemented in Encoder, HallSensor, MagneticSensorSPI, MagneticSensorI2C, and MagneticSensorAnalog.
Definition at line 15 of file Sensor.cpp.
|
virtual |
returns 0 if it does need search for absolute zero 0 - magnetic sensor (& encoder with index which is found) 1 - ecoder with index (with index not found yet)
Reimplemented in Encoder.
Definition at line 10 of file Sensor.cpp.