Signals | Public Member Functions

MeeGo::QmAccelerometer Class Reference

Provides raw accelerometer measurements. More...

#include <qmaccelerometer.h>

Inheritance diagram for MeeGo::QmAccelerometer:
Inheritance graph
[legend]
Collaboration diagram for MeeGo::QmAccelerometer:
Collaboration graph
[legend]

List of all members.

Signals

void dataAvailable (const MeeGo::QmAccelerometerReading &data)

Public Member Functions

 QmAccelerometer (QObject *parent=0)
 ~QmAccelerometer ()

Detailed Description

Provides raw accelerometer measurements.

Scope:
Internal

Measured values are in Nokia Coordinate System (NCS). NCS is defined as right hand coordinate system, with positive z-axis pointing up from the screen. Positive axis directions are shown in the image below. Note that regardless of device dimensions, y-axis should always be considered to be pointing front from the viewer, and x-axis to the side. Devices with rotating displays may have different behavior with regards to this rule.

The unit of the values is mG, for example 1000 means 1 G.



                     +z
                      |
                      |      +y
                      |     /
                      |----/----
                     /| NOKIA  /|
                    //|--/--- / |
                   // | /   //  /
                  //  |/   //  /
                 //   '--------------- +x
                //       //  /
               //       //  /
              /---------/  /
             /    O    /  /
            /         /  /
            ----------  /
            |_________!/


              Bottom

       

To get measurements from the daemon, the client must open a session and call start (). Details can be found from documentation of QmSensor.

Definition at line 100 of file qmaccelerometer.h.


Constructor & Destructor Documentation

MeeGo::QmAccelerometer::QmAccelerometer ( QObject *  parent = 0  ) 

Constructor

Parameters:
parent Parent QObject.
MeeGo::QmAccelerometer::~QmAccelerometer (  ) 

Destructor


Member Function Documentation

void MeeGo::QmAccelerometer::dataAvailable ( const MeeGo::QmAccelerometerReading data  )  [signal]

Signals the availability of new measurement data from the sensor.

Parameters:
data Available measurement data (mG)

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