beautypg.com

C? (compass update), Request for data commands – PNI TCM 2.6 User Manual

Page 23

background image

PNI Sensor Corporation

DOC#1009269 r11

TCM2.5 & TCM2.6 User Manual

Page 23 of 49

Request for Data Commands

Query Commands

c? (Compass Update)

Description

Samples the magnetometer and inclinometer sensors, then calculates and returns

the compass heading. When in Standby mode (h) use this command to query the
compass reading regardless of whether compass data has been selected for
inclusion in the output word.

Syntax

c?

Output

when compass units are set to degrees:

$Cnnn.n[Ennn]*checksum:

when compass units are set to mils:

$Cnnn.n[Ennn]:

Resolution

0.1˚ or 2 mils

Valid Values

0 to 359.9˚ or, 0 to 6399 mils

Example

If TCM2 is configured for degrees:

c?

$C255.5[Ennn]*checksum:

If TCM2 is configured for mils:

c?

$C4480[Ennn]*checksum:

Related Commands

uc= (Set Compass Units)

ec= (Compass Data Enable)

This manual is related to the following products: