Advertisement
CVSoft

NMEA 85/86

May 6th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. // v1.1
  2. // No support for message chaining
  3. // v1.1 fixes garbage output without checksum
  4. :{0}->nmeaout
  5. :1->y
  6. :For(x,1,lngth gpsdata
  7. :If sub(gpsdata,x,1)=","
  8. :Then
  9. :x+1->nmeaout(y)
  10. :y+1->y
  11. :End
  12. :End
  13. :If sub(gpsdata,lngth gpsdata-2,1)=="*"
  14. :Then
  15. :lngth gpsdata-1->nmeaout(y
  16. :nmeaout(y)+3->nmeaout(y+1
  17. :End
  18. :Pause "Done."
  19. :For x,1,dimL nmeaout-1 //Display message segments that aren't of zero length
  20. :If nmeaout(x+1)-nmeaout(x)>1 //Check if segment is of zero length
  21. :Then
  22. :Disp sub(gpsdata,nmeaout(x),nmeaout(x+1)-nmeaout(x)
  23. :Else
  24. :Disp "NUL"
  25. :End
  26. :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement