beautypg.com

Kmagx, kmagy & kmagz (component ids 27d, 28d, 29d), 4 making a measurement, Kgetdata (frame id 4d) – PNI FieldForce Trax User Manual

Page 54: Kstartcontinuousmode (frame id 21 d), Kstopcontinuousmode (frame id 22 d), Kgetdataresp (frame id 5d), Making a measurement, Kgetdata, Kgetdataresp, Kstartcontinuousmode

background image

PNI Sensor Corporation

DOC#1016505 r06

TRAX User Manual

Page 50

kAccelX, kAccelY & kAccelZ (Component IDs 21

d

, 22

d

, 23

d

)

These values represent the accelerometer sensor data for the x, y, and z axis,
respectively. The values are normalized to g (Earth’s gravitational force).

kMagX, kMagY & kMagZ (Component IDs 27

d

, 28

d

, 29

d

)

These values represent the magnetic sensor data for the x, y, and z axis,

respectively. The values are given in µT.

kGyroX, kGyroY, kGyroZ (Component IDs 74

d

, 75

d

, 76

d

)

These values represent the gyroscope sensor data for rotation around the x, y, and

z axis, respectively. The values are in radians per second.

7.5.4

Making a Measurement

kGetData (frame ID 4

d

)

If the TRAX is configured to operate in Polled Acquisition Mode (see

kSetAcqParams), then this frame requests a single measurement data set. The frame

has no payload.

kStartContinuousMode (frame ID 21

d

)

If the TRAX is configured to operate in Continuous Acquisition Mode (see

kSetAcqParams), then this frame initiates the outputting of data at a relatively fixed

data rate, where the data rate is established by the SampleDelay parameter. The

frame has no payload.

kStopContinuousMode (frame ID 22

d

)

This frame commands the TRAX to stop data output when in Continuous Acquisition

Mode. The frame has no payload.

kGetDataResp (frame ID 5

d

)

The response to kGetData and kStartContinuousMode is kGetDataResp. The specific

data fields that will be output (ID 1, Value ID 1, etc.) should have been previously

established by the kSetDataComponents command frame.

Example:

If heading and heading status are set to be output per the

kSetDataComponents command, the payload would look like:

ID Count

UInt8

Payload

ID Specific

ID Specific

ID Specific

Value ID 1

Value ID 2

Value ID 3

ID 1

UInt8

ID 2

UInt8

ID 3

UInt8