How to decode GPS NMEA signal in simulink?

조회 수: 4 (최근 30일)
varun
varun 2013년 6월 24일
답변: Cristian Bermudez Serna 2016년 3월 16일
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

답변 (1개)

Cristian Bermudez Serna
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

카테고리

Help CenterFile Exchange에서 Automotive에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by