blip
0.1
|
A class representing a sensor. More...
#include <Sensor.hpp>
Public Types | |
enum | Type { Type_Unknown = -1, Type_Accelerometer = 1, Type_Gravity, Type_Gyroscope, Type_Light, Type_LinearAcceleration, Type_MagneticField, Type_Orientation, Type_Pressure, Type_Proximity, Type_RotationVector, Type_Temperature } |
Sensor types. More... | |
Public Member Functions | |
~Sensor () throw () | |
Destructor. More... | |
Type | getType () const throw () |
Get the sensor type. More... | |
float | getResolution () const throw () |
Get the sensor's resolution, in the sensor's unit. More... | |
timespan_us_t | getMinimumDelay () const throw () |
Get the minimum delay between two events for the sensor, in microseconds. More... | |
const char * | getVendor () const throw () |
Get the sensor's vendor. More... | |
const char * | getName () const throw () |
Get the sensor's name. More... | |
Static Public Attributes | |
static const float | STANDARD_GRAVITY = ASENSOR_STANDARD_GRAVITY |
The Earth's gravity in m/s2. More... | |
static const float | MAGNETIC_FIELD_EARTH_MIN = ASENSOR_MAGNETIC_FIELD_EARTH_MIN |
The minimum magnetic field on the Earth's surface in uT. More... | |
static const float | MAGNETIC_FIELD_EARTH_MAX = ASENSOR_MAGNETIC_FIELD_EARTH_MAX |
The maximum magnetic field on the Earth's surface in uT. More... | |
A class representing a sensor.
enum Type |
Sensor types.
~Sensor | ( | ) | ||
throw | ( | |||
) |
Destructor.
timespan_us_t getMinimumDelay | ( | ) | const | |
throw | ( | |||
) |
Get the minimum delay between two events for the sensor, in microseconds.
May return 0 to indicate that an event is only sent when the sensor's measurement changes.
const char * getName | ( | ) | const | |
throw | ( | |||
) |
Get the sensor's name.
float getResolution | ( | ) | const | |
throw | ( | |||
) |
Get the sensor's resolution, in the sensor's unit.
Sensor::Type getType | ( | ) | const | |
throw | ( | |||
) |
Get the sensor type.
const char * getVendor | ( | ) | const | |
throw | ( | |||
) |
Get the sensor's vendor.
|
static |
The maximum magnetic field on the Earth's surface in uT.
|
static |
The minimum magnetic field on the Earth's surface in uT.
|
static |
The Earth's gravity in m/s2.