TSensrvRotationData Class Reference


#include <
sensrvorientationsensor.h>

Public Types

enum  TSensrvRotationDataIndexes { ETimeStamp = 0, EDeviceRotationAboutXAxis, EDeviceRotationAboutYAxis, EDeviceRotationAboutZAxis }
 Channel data type index numbers. More...

Data Fields

TTime iTimeStamp
 
  • Item name: Sampling time.

TInt iDeviceRotationAboutXAxis
 
  • Item name: Rotation about x-axis
    • Item Index: 1
    • Description: Positive rotation in Cartesian coordinate system about the x-axis.

TInt iDeviceRotationAboutYAxis
 
  • Item name: Rotation about y-axis
    • Item Index: 2
    • Description: Positive rotation in Cartesian coordinate system about the y-axis.

TInt iDeviceRotationAboutZAxis
 
  • Item name: Rotation about z-axis
    • Item Index: 3
    • Description: Positive rotation in Cartesian coordinate system about the z-axis.


Static Public Attributes

static const TSensrvChannelDataTypeId KDataTypeId = 0x10205089
 Channel data type Id number.
static const TInt KSensrvRotationUndefined = -1
 Rotation axis value equals -1 when it cannot be defined.

Member Enumeration Documentation

enum TSensrvRotationData::TSensrvRotationDataIndexes
 

Channel data type index numbers.

Enumerator:
ETimeStamp 
EDeviceRotationAboutXAxis 
EDeviceRotationAboutYAxis 
EDeviceRotationAboutZAxis 

Field Documentation

TInt TSensrvRotationData::iDeviceRotationAboutXAxis
 
  • Item name: Rotation about x-axis
    • Item Index: 1
    • Description: Positive rotation in Cartesian coordinate system about the x-axis.

If the value cannot be defined it is set to KSensrvRotationUndefined.

TInt TSensrvRotationData::iDeviceRotationAboutYAxis
 
  • Item name: Rotation about y-axis
    • Item Index: 2
    • Description: Positive rotation in Cartesian coordinate system about the y-axis.

If the value cannot be defined it is set to KSensrvRotationUndefined.

TInt TSensrvRotationData::iDeviceRotationAboutZAxis
 
  • Item name: Rotation about z-axis
    • Item Index: 3
    • Description: Positive rotation in Cartesian coordinate system about the z-axis.

If the value cannot be defined it is set to KSensrvRotationUndefined.

TTime TSensrvRotationData::iTimeStamp
 
  • Item name: Sampling time.
  • Item Index: 0
  • Description: Timestamp for a sample
const TSensrvChannelDataTypeId TSensrvRotationData::KDataTypeId = 0x10205089 [static]
 

Channel data type Id number.

const TInt TSensrvRotationData::KSensrvRotationUndefined = -1 [static]
 

Rotation axis value equals -1 when it cannot be defined.

The undefined situation varies depending on the sensor type. In the case of an accelerometer, the rotation value cannot be defined when the corresponding axis is parallel to the gravitational force or the device is in motion. In the case of a magnetometer, there are difficulties in measuring values, when the axis is parallel to the magnetic field.


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

Copyright © Nokia Corporation 2001-2007
Back to top