blip  0.1
LinearAccelerationSensorEvent Class Reference

A linear acceleration sensor event, which measures acceleration, not including the effects of gravity. More...

#include <LinearAccelerationSensorEvent.hpp>

Inheritance diagram for LinearAccelerationSensorEvent:

Public Types

enum  Type { Type_Key, Type_Motion, Type_Sensor, Type_Timer }
 Event types. More...
 

Public Member Functions

virtual ~LinearAccelerationSensorEvent ()
 Destructor. More...
 
float getAccelerationX () const
 Get the acceleration on the X-axis. More...
 
float getAccelerationY () const
 Get the acceleration on the Y-axis. More...
 
float getAccelerationZ () const
 Get the acceleration on 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...
 

Detailed Description

A linear acceleration sensor event, which measures acceleration, not including the effects of gravity.

All values are in m/s2 (meters per second squared).

Author
Mark Lindner

Member Enumeration Documentation

◆ Type

enum Type
inherited

Event types.

Enumerator
Type_Key 

Key input events.

Type_Motion 

Motion input events.

Type_Sensor 

Sensor events.

Type_Timer 

Timer events.

Constructor & Destructor Documentation

◆ ~LinearAccelerationSensorEvent()

Destructor.

Member Function Documentation

◆ getAccelerationX()

float getAccelerationX ( ) const
inline

Get the acceleration on the X-axis.

◆ getAccelerationY()

float getAccelerationY ( ) const
inline

Get the acceleration on the Y-axis.

◆ getAccelerationZ()

float getAccelerationZ ( ) const
inline

Get the acceleration on the Z-axis.

◆ getAccuracy()

Accuracy getAccuracy ( ) const
inlineinherited

Get the accuracy of the sensor event values.

◆ getEventTime()

virtual time_ms_t getEventTime ( ) const
inlinevirtualinherited

Get the time at which this event occurred.

Implements Event.

◆ getSensorType()

Sensor::Type getSensorType ( ) const
inlineinherited

Get the sensor type.

◆ getType()

Type getType ( ) const
inlineinherited

Get the event type.

◆ getValue()

float getValue ( int  index) const
throw (
)
inherited

Get a sensor value.

Parameters
indexThe 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.
Returns
The sensor value.

The documentation for this class was generated from the following files: