beautypg.com

Ksetdatacomponents (frame id 3, Table 7-3: component identifiers, 3 ksetdatacomponents (frame id 3 – PNI TCM User Manual

Page 46

background image

PNI Sensor Corporation

DOC#1014688 r06

TCM User Manual

– July 2013

Page 41

32 30 38 C7 87” can be decoded to read “TCM5 1208”. Also, the TCM XB is referenced
as Type “TCM6” since the number of Type characters is limited to 4.

7.3.3

kSetDataComponents (frame ID 3

d

)

This frame defines what data is output when kGetData is sent. Table 7-3 summarizes the

various data components and more detail follows this table. Note that this is not a query

for the device's model type and software revision (see kGetModInfo). The first byte of

the payload indicates the number of data components followed by the data component

IDs. Note that the sequence of the data components defined by kSetDataComponents

will match the output sequence of kGetDataResp.

Example: To query for heading and pitch, the payload should contain:

When querying for data (kGetData frame), the sequence of the data component output

follows the sequence of the data component IDs as set in this frame.

Table 7-3: Component Identifiers

Component

Component

ID

d

Format

Units

kHeading

5

Float32

degrees

kPitch

24

Float32

degrees

kRoll

25

Float32

degrees

kTemperature

7

Float32

˚ Celsius

kDistortion

8

Boolean

True or False

(Default)

kCalStatus

9

Boolean

True or False

(Default)

kAccelX

21

Float32

G

kAccelY

22

Float32

G

kAccelZ

23

Float32

G

kMagX

27

Float32

T

kMagY

28

Float32

T

kMagZ

29

Float32

T

2

Heading ID

5

ID Count

Payload

79

Pitch ID

ID Count

UInt8

ID 1

UInt8

Payload

ID 2

ID 3

UInt8

UInt8

……….