- Fri Apr 22, 2005 4:53 pm
#4395
I get from a Lassen iQ TSIP data like this:
4A 3E DD D7 88 BF EF FF E6 41 BC 4D 7A 47 9F 8B C3 48 F6 5A 00
I know this:
4A is packet indicating GPS position fix.
3E DD D7 88 is a single float number indicating Latitude.
3E DD D7 88 in binary is 00111110 11011101 11010111 10001000 and that I need to extract from here sign bit, exponent and fraction so I can calculate the single float number, but I can't find how.
I need to know how I get the single float number from those 4 bytes.
Sorry if my english is not good.
4A 3E DD D7 88 BF EF FF E6 41 BC 4D 7A 47 9F 8B C3 48 F6 5A 00
I know this:
4A is packet indicating GPS position fix.
3E DD D7 88 is a single float number indicating Latitude.
3E DD D7 88 in binary is 00111110 11011101 11010111 10001000 and that I need to extract from here sign bit, exponent and fraction so I can calculate the single float number, but I can't find how.
I need to know how I get the single float number from those 4 bytes.
Sorry if my english is not good.