beautypg.com

Table 5-4: component identifiers – PNI CompassPoint V2Xe User Manual

Page 19

background image

PNI Sensor Corporation

DOC#1017814 r01

V2Xe User Manual

– May 2012

Page 17

Table 5-4: Component Identifiers

Component

Component ID

Format

Units

kXRaw

0x01

SInt32

counts

kYRaw

0x02

Sint32

counts

kXCal

0x03

Float32

scaled to 1.0

kYCal

0x04

Float32

scaled to 1.0

kHeading

0x05

Float32

degrees

kMagnitude

0x06

Float32

scaled to 1.0

kTemperature

0x07

Float32

°C

kDistortion

0x08

Boolean

True or False

kCalStatus

0x09

Boolean

True or False

Component types are listed below. All are read-only values.

kXRaw & kYRaw (Component IDs 1

d

& 2

d

)

These values are the raw sensor counts as read from the ASIC registers.

kXCal & kYCal (Component IDs 3

d

& 4

d

)

These are the X and Y components of the magnetic vector after the calibration

coefficients have been applied to the raw values. Their values are used to

calculate the heading.

kHeading

(Component ID 5

d

)

Provides compass heading calculated from kXCal and kYCal, where the heading

range is 0.0˚ to +359.9. kHeading will equal -1.00 if kCalStatus is True.

kMagnitude

(Component ID 0x06)

The value is calculated using the formula Magnitude = SQRT (XCal2 + YCal2).

Its value is compared to the calibration magnitude to determine distortion.

kTemperature (Component ID 0x07)

The V2Xe’s internal temperature sensor provides the temperature value, in °C.

kDistortion (Component ID 0x08)

This flag indicates if the magnitude of the vector used to calculate the heading is

below 50% or above 150% of the calibration magnitude.

kCalStatus (Component ID 0x09)

This flag indicates the user calibration status. True means it is not user calibrated

and this is the default value.

kGetData (frame ID 0x04)

This frame queries the V2Xe for data. The frame has no payload. The response is

kGetDataResp.