0 out of 1 rated this helpful - Rate this topic

AttitudeReading Structure

July 26, 2012

Contains information about the orientation of the device in space.

Namespace:  Microsoft.Devices.Sensors
Assembly:  Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)
'Declaration
Public Structure AttitudeReading _
	Implements ISensorReading

The AttitudeReading type exposes the following members.

  NameDescription
Public propertyPitchGets the pitch of the attitude reading in radians.
Public propertyQuaternionGets the quaternion representation of the attitude reading.
Public propertyRollGets the roll of the attitude reading in radians.
Public propertyRotationMatrixGets the matrix representation of the attitude reading.
Public propertyTimestampGets a timestamp indicating the time at which the accelerometer reading was taken. This can be used to correlate readings across sensors and provide additional input to algorithms that process raw sensor data.
Public propertyYawGets the yaw of the attitude reading in radians.
Top
  NameDescription
Public methodEquals (Inherited from ValueType.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from ValueType.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from ValueType.)
Top

To obtain an AttitudeReading object, create a Motion object and call Start. Then use the Attitude property or implement a handler for the CurrentValueChanged event.

Windows Phone OS

Supported in: 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.