blip
0.1
|
A magnetic field sensor event, which measures the ambient magnetic field. More...
#include <MagneticFieldSensorEvent.hpp>
Public Types | |
enum | Type { Type_Key, Type_Motion, Type_Sensor, Type_Timer } |
Event types. More... | |
Public Member Functions | |
virtual | ~MagneticFieldSensorEvent () |
Destructor. More... | |
float | getFieldX () const |
Get the ambient magnetic field in the X-axis. More... | |
float | getFieldY () const |
Get the ambient magnetic field in the Y-axis. More... | |
float | getFieldZ () const |
Get the ambient magnetic field in the Z-axis. More... | |
Accuracy | getAccuracy () const |
Get the accuracy of the sensor event values. More... | |
float | getValue (int index) const throw () |
Get a sensor value. More... | |
virtual time_ms_t | getEventTime () const |
Get the time at which this event occurred. More... | |
Sensor::Type | getSensorType () const |
Get the sensor type. More... | |
Type | getType () const |
Get the event type. More... | |
A magnetic field sensor event, which measures the ambient magnetic field.
All values are in uT (micro-Tesla).
|
inherited |
|
virtual |
Destructor.
|
inlineinherited |
Get the accuracy of the sensor event values.
|
inlinevirtualinherited |
Get the time at which this event occurred.
Implements Event.
|
inline |
Get the ambient magnetic field in the X-axis.
|
inline |
Get the ambient magnetic field in the Y-axis.
|
inline |
Get the ambient magnetic field in the Z-axis.
|
inlineinherited |
Get the sensor type.
|
inlineinherited |
Get the event type.
|
inherited |
Get a sensor value.
index | The value index. Must be between 0 and 15, inclusive. The number of significant values, and the meaning of each, is dependent on the sensor type. |