Help Manipulating Compass Header Data!! Help!
Hello!
I am using the HMR3100 from Honeywell. Basically, it ouputs ASCII
data in 2Hz intervals in 3 byte chunks..
For example( these Hex values display thru the hyperterminal as
follows)... and the first byte is always 80 or 81
80 02 13 (2Hz) 80 02 75 (2Hz) 80 01 64 (2Hz) 80 01 23 80 03 34 etc.....
Do I need to buffer the input, or really what do I do to grab these
values and convert them to decimal.
I appreciate any help!
Thanks,
Gabe
I am using the HMR3100 from Honeywell. Basically, it ouputs ASCII
data in 2Hz intervals in 3 byte chunks..
For example( these Hex values display thru the hyperterminal as
follows)... and the first byte is always 80 or 81
80 02 13 (2Hz) 80 02 75 (2Hz) 80 01 64 (2Hz) 80 01 23 80 03 34 etc.....
Do I need to buffer the input, or really what do I do to grab these
values and convert them to decimal.
I appreciate any help!
Thanks,
Gabe
Comments
<ide path>/lib/stamp/peripheral/sensor/compass/HMR3100/
The class HMR3100 has a method readMessage using normal mode, that is
RTS is pulsed low before reading the 3 bytes.
The HMR3100 datsheet is here:
http://www.ssec.honeywell.com/magnetic/datasheets/hmr3100.pdf
regards peter
regards peter