Closed chlupm closed 4 years ago
What does your custom URL look like, can you copy paste it here? And are you recording simultaneously to another format such as GPX/CSV to verify that no altitude is appearing in there as well?
I am recording simultaneously with CSV. In CSV altitude empty too.
When start only GPS Logger every works OK (altitude exists - log period 300 s). After Start OsmAnd and start navigation in GPS Logger activated passive log and altitude is emty (log period automatic changed and is very short ~1 s).
OK I have now tested on multiple phones with the same URL as you (different domain of course) as passive, with OsmAnd... and altitude is always appearing. What kind of device is this? Do other applications show an altitude?
Device with problem (without altitude in passive log in GPS Logger): Samsung Galaxy A40 (A405F) Samsung Galaxy A3 2016 (A310F)
In other application altitude ok. In GPS Logger altitude ok too when no activate passive loging.
So just the passive locations aren't including an altitude, but normal locations are including it.
I've tried on several phones now with that scenario but not able to recreate it. But I don't have any Samsung phones, only Nexus, Pixel, OnePlus devices, all of them record altitudes with passive locations.
I wouldn't be surprised if somehow this is specific to Samsung devices (or just yours?) but that does sound weird.
I don't have any answer, sorry can't offer much more help here.
I think I found the problem. When disable MSL passive log altitude OK. When enable MSL passive log without altitude.
Wow that was a good find, thanks for troubleshooting it and being so patient. I had totally forgotten about MSL.
See this code:
Basically the MSL requires geoidheight. Geoidheight comes from NMEA. NMEA requires GPS locations.
However a passive location coming in comes from another app, and the GPSLogger app, at that moment that a passive location comes in, is not listening to GPS for the NMEA sentences. So no geoidheight exists at all.
So the logic is, if no geoidheight is present, then remove the altitude rather than give an incorrect result.
Even if the location is a passive one, the lack of geoidheight cannot be ignored. Because if it were ignored only for passive locations then some of the altitudes will be wrong.
Well that is the explanation.
What is the next step, does the description need clarifying, or should this be an item in the main FAQ on https://gpslogger.app ?
--- Closing as part of issues cleanup, market release, inactivity or inevitability. Issue can be reopened if needed, or a new issue created.
When active passive log, Altitude no logged (no altitude in "%ALT" when use Log to custom URL).