#include <DistanceSensor.h>
Public Member Functions | |
| void | setSensorNumber (unsigned int n) |
| float | voltage () const |
| unsigned int | heading () const |
Static Public Member Functions | |
| static unsigned int | numDistanceSensors () |
| static unsigned int rec::robotino::com::DistanceSensor::numDistanceSensors | ( | ) | [static] |
| void rec::robotino::com::DistanceSensor::setSensorNumber | ( | unsigned int | n | ) |
Sets the number of this distance sensor.
| n | The input number. Range [0; Robotstate::numDistanceSensors] |
| RobotinoException | if the given sensor number is invalid. |
| float rec::robotino::com::DistanceSensor::voltage | ( | ) | const |
Returns the current voltage of this distance sensor. The voltage is correlated to the measured distance, see the documentation for further details. See http://www.acroname.com/robotics/info/articles/irlinear/irlinear.html for an explanation how to convert the measured voltage into distance value.
| RobotinoException | if the underlying communication object is invalid |
| unsigned int rec::robotino::com::DistanceSensor::heading | ( | ) | const |
Returns the heading of this distance sensor.
| RobotinoException | if the underlying communication object is invalid |
1.5.5