Hello everybody,
I am trying to make the follow me work, but it didn't work properly. There is a problem with the gps coords. The quad should recieve coords like Lat:48,884805 and Long:9,08266388 but it recieves the one shown in the image below.
I found these lines in the FollowMe.cs:
gotolocation.Lat = double.Parse(items[2]) / 100.0;
gotolocation.Lat = (int)gotolocation.Lat + ((gotolocation.Lat - (int)gotolocation.Lat) / 0.60);
if (items[3] == "S")
gotolocation.Lat *= -1;
gotolocation.Lng = double.Parse(items[4]) / 100.0;
gotolocation.Lng = (int)gotolocation.Lng + ((gotolocation.Lng - (int)gotolocation.Lng) / 0.60);
if (items[5] == "W")
gotolocation.Lng *= -1;
gotolocation.Alt = intalt; // double.Parse(line.Substring(c9, c10 - c9 - 1)) +
gotolocation.Tag = "Sats "+ items[7] + " hdop " + items[8] ;
They should work, but they do not. I do not know exactly why. The coords displayed by the MegaPlanner are the same ones the quad will recieve.
Does anybody know how to fix this?
Thanks and greez
Flyer
Replies
can you past a raw gps dump here. your gps doesnt apear to be outputting standard nmea