You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in Stockholm, Sweden which is east of the the prime meridian. Using the fancy-asset-tracker/motion-tracker/main.ino code I've been getting GPS coordinates in the Atlantic ocean where I'm pretty sure I'm not. The fault seems to be that my longitude is negative where it should be positive (Eastern Hemisphere = positive longitude).
Looking thru the code I realise there's a hard coded - in front of longitude on row 214.
The best solution is probably to use the available GPS.lon value and add a minus sign if the value is 'W'. The same goes for the Latitude where there should be a minus sign if the GPS.latvalue is 'S'.
Cheers
Ruben
The text was updated successfully, but these errors were encountered:
Thanks for reporting! I think you're absolutely right, I'll fix this as soon as I get a chance, which should be next week. Pull requests are of course welcome also if you like! :)
Hi,
I'm in Stockholm, Sweden which is east of the the prime meridian. Using the fancy-asset-tracker/motion-tracker/main.ino code I've been getting GPS coordinates in the Atlantic ocean where I'm pretty sure I'm not. The fault seems to be that my longitude is negative where it should be positive (Eastern Hemisphere = positive longitude).
Looking thru the code I realise there's a hard coded - in front of longitude on row 214.
+ ",\"lon\":-" + String(convertDegMinToDecDeg(GPS.longitude))
The best solution is probably to use the available
GPS.lon
value and add a minus sign if the value is 'W'. The same goes for the Latitude where there should be a minus sign if theGPS.lat
value is 'S'.Cheers
Ruben
The text was updated successfully, but these errors were encountered: