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

Page 23

Advertising
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?<cr>

Output

when compass units are set to degrees:

$Cnnn.n[Ennn]*checksum<cr><lf>:<cr><lf>

when compass units are set to mils:

$Cnnn.n[Ennn]<cr><lf>:<cr><lf>

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?<cr>

$C255.5[Ennn]*checksum<cr><lf>:<cr><lf>

If TCM2 is configured for mils:

c?<cr>

$C4480[Ennn]*checksum<cr><lf>:<cr><lf>

Related Commands

uc= (Set Compass Units)

ec= (Compass Data Enable)

Advertising
This manual is related to the following products: