Can you tell me in in what format should the data from the GPS. I Have Linxmotion Quadrino nano with GPS and i am trying to read the GPS data using the standard MultiWii serial protocol ([font=sans-serif][size=4][highlight=#f9f9f9]MSP_RAW_GPS)[/highlight][/size][/font].
I am getting values like +14211.00 -27187.00 for latitude an longitude. it should be 42 deg and 21 deg.
Is the data in some other format or i am parsing it wrong?
Information available for the RAW GPS data is available HERE.
Have you connected your Quadrino Nano to the WinGUI application to confirm that your GPS is actually giving you the right location ?
The WinGUI shows the correct latitude and longitude. The strange thing is that when i draw a path with the values that i receive, the path is correct only the actual coordinates are wrong. Which probably mean that either i am not parsing it wright or i need to format the message somehow.
So it will be good if someone can tell me how to interpret the gps data. For example the multiwii serial protocol in the comment section states that gps lat and lon are [font=sans-serif][highlight=#f9f9f9]1 / 10 000 000 deg. What is the meaning of this?[/highlight][/font]
[font=sans-serif][highlight=#f9f9f9]
[/highlight][/font]
[font=sans-serif][highlight=#f9f9f9]Are we getting the coordinates in deg, min, sec or in some other format?[/highlight][/font]
[font=sans-serif][highlight=#f9f9f9]
[/highlight][/font]
[font=sans-serif][highlight=#f9f9f9]I am using python to read the data, i will try C++ and see what happens.[/highlight][/font][/size]
[font=sans-serif][size=4][highlight=#f9f9f9]
[/highlight][/size][/font]
After talking with one of my colleagues, we found that there might be an issue because in the MultiWii document they said to use “UINTs” but that doesn’t make sense. Since this means they can’t express negative GPS coordinates.
They are in “INT32s” instead.