Hey everyone,
So heres whats going on, currently I'm building an autopilot system from scratch using an AVR MCU literally for the sole reason of two way telemetry.  I have an em406 GPS receiver that I plan to use for waypoint nav.  My original intent was to just use the standard NMEA messages it outputs, but I've ran into a few posts that discuss putting it into binary mode, saying that NMEA isn't really very good for an autopilot.  I assume binary mode means to change the output format, but how would I go about this?  

I've been looking over the datasheets, but I'm still not entirely sure.  A little guidance would be lovely.

Thanks,
Strix

Tags: Binary, GPS, NMEA, em406

Views: 37

Reply to This

Replies to This Discussion

You might want to start here. There's even a program you can use to put it in binary mode. Let me know if you need anything else googled for you.
I apologize for poor wording (it was early), I meant more along the lines of what does binary mode do, and why is it preferred over the preset NMEA. And no, googling does not clear those questions up.
Why? Because binary can carry the same information in fewer bytes (reducing serial data transfer) and in a more "native" format for the CPU which reduces CPU load.

Example:

The SiRF binary position message puts the X, Y, and Z-position (in meters) in 4 bytes each. (A "long int" if you speak programmer.)

In contrast, in the NMEA GGA position message latitude takes 8 or 9 bytes depending on the outputting device and its precision (longitude 9 or 10 bytes) when you include the imbedded decimal point, then to that you add a comma, then a "N", "E","W", or "S". Then there is another comma before the next field. So it takes something like 12 or 13 bytes of NMEA text vs 4 native binary bytes sent through the serial port for the binary format. Then, this NMEA text data has to be converted into a binary format that the CPU can manipulate.
Ah, exactly what I was getting at. I didn't know exactly what format binary mode meant, but this explains it! Thank you very much for your time.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service