How to decode GPS NMEA signal in simulink?

4 vues (au cours des 30 derniers jours)
varun
varun le 24 Juin 2013
I have a GPS receiver connected to the COM port of my pc. I am able to see the NMEA sentences over a serial monitor i downloaded. The data looks like this
<LF>$GPGGA,110404.002,5204.26064,N,00037.76587,W,1,07,1.2,125.17,M,47.60,M,,0000*47
Now I want to separate the latitude and longitude alone separately. I used the serial setup and receive blocks, it seems to give me some decimal numbers from 10 to 60 when I used display. I am not sure how to proceed further, does any one know how this is done?
I need the values separated such that I can operate on them later.
Thanks

Réponses (1)

Cristian Bermudez Serna
Cristian Bermudez Serna le 16 Mar 2016
Hi, i am facing exactly the same problem. I don't know how to proceed. Did you find any answer? However the data are not decimal, it should be uint because they are ASCII characters. Make sure in your receiver block to select the unit8 data type.
Looking forward to read from you Cris

Catégories

En savoir plus sur Automotive dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by