ECRobot C++ API for LEGO MINDSTORMS NXT
1.0.10
|
A/D sensor abstract class. More...
#include <Sensor.h>
Public Member Functions | |
S16 | get (void) const |
Get raw A/D value. | |
Protected Member Functions | |
ePortS | getPort (void) const |
Get the sensor connected port. | |
Sensor (ePortS port, ePower power=POWER_OFF) | |
Constructor. | |
virtual | ~Sensor (void) |
Destructor (power off the sensor). |
A/D sensor abstract class.
ecrobot::Sensor::Sensor | ( | ePortS | port, |
ePower | power = POWER_OFF |
||
) | [inline, explicit, protected] |
virtual ecrobot::Sensor::~Sensor | ( | void | ) | [inline, protected, virtual] |
Destructor (power off the sensor).
- |
S16 ecrobot::Sensor::get | ( | void | ) | const [inline] |
Get raw A/D value.
- |
ePortS ecrobot::Sensor::getPort | ( | void | ) | const [inline, protected] |