Advertisement
CVSoft

NMEAPosC 85/86

May 10th, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. // NMEAPosC for TI-85 and TI-86
  2. // NMEA 0183 GGA sentence in gpsdata
  3. // temp contents, in Ans, contains previously determined string positions; else, recalculates them
  4. :Ans→temp
  5. :If dimL temp==4
  6. :Goto C
  7. :{0,0}
  8. :If sub(gpsdata,4,3)≠"GGA"
  9. :Return
  10. :19→P
  11. :{7,14}→temp
  12. :Repeat sub(gpsdata,P,1)==","
  13. :P+1→P
  14. :End
  15. :P→temp(dimL temp+1
  16. :{temp(2),temp(3),temp(3)+2,2*temp(3)+3-temp(2)}→temp
  17. :Lbl C
  18. :sub(gpsdata,temp(1)+1,temp(2)-temp(1)-1)→tlat
  19. :St►Eq(tlat,Lat
  20. :evalF(Lat,x,1)/100→Lat
  21. :sub(gpsdata,temp(3)+1,temp(4)-temp(3)-1)→tlon
  22. :St►Eq(tlon,Lon
  23. :evalF(Lon,x,1)/100→Lon
  24. :{(1-2(sub(gpsdata,temp(2)+1,1)=="S"))(int Lat+fPart Lat/.6),(1-2(sub(gpsdata,temp(4)+1,1)=="S"))(int Lon+fPart Lon/.6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement