How to decode GPS NMEA signal in simulink?
5 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Cristian Bermudez Serna
2016-3-16
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
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!