![PNI TCM2.5 Manual Download Page 22](http://html1.mh-extra.com/html/pni/tcm2-5/tcm2-5_manual_1569855022.webp)
Page 22 of 48
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)