Re: How do I discern Maidenhead Locator from GPS lat long info.
first off , what has your post got to do with maidenhead ? why not start a new relevant post instead of confusing this one
secondly posting figures as pictures makes life difficult for anyone inclined to assist
in you google numbers query (which is really deg ,min, sec conversion to decimal degrees )
how did you get 38 + 2/60 + 3.49/3600 = 38.034297
my calculator says 38.0343027 ps (in 32 bit float result is 38.0343018, with 64 bit float 38.0343028)done on pic24f using xc16
you will have fun trying to get math accurate to 10 significant digits on that chip [even 32 bit floats struggle]
your best bet is nbit math
the decimal portion can be :-
mins *1000000/6 + sec *1000/36
parsing the nmea sentences is well covered but you may be interested in this
http://support.melabs.com/forum/picb...strtok-usercmd
a strtok function for pbp
parsing strings with spaghetti code will always by a shortcut to madness
Last edited by richard; - 21st May 2018 at 11:13.
Warning I'm not a teacher
Bookmarks