navit icon indicating copy to clipboard operation
navit copied to clipboard

Tunnel extrapolation not working despite OSM data tunnel=yes

Open ummerland opened this issue 5 years ago • 11 comments

Hi community

According to https://wiki.navit-project.org/index.php/Tunnel_Extrapolation it is possible to mathematically extrapolate movement using the currrent speed without GPS input.

However, if i set tunnel_extrapolation="12" in <tracking> inside navit.xml the position still stays at the beginning of the tunnel.

Looking at https://wiki.navit-project.org/index.php/Configuration/Full_list_of_options#tracking this option is not mentioned. Has it been removed at some point? If so, why?

There is a demo mode for simulating GPS position for <vehicle>. As far as I can see it uses max_speed to go along.

Thanks

ummerland avatar Jul 09 '19 12:07 ummerland

A bit more investigation on this topic reveales that the setting lag="10" in <vehicle> also uses the same principle, described in
https://github.com/navit-gps/navit/blob/07006013135b619029f26df579a0ac6acb86cd4a/navit/track.c#L681

I am currently feeding it GPGGA, GPVTG and GPRMC sentences, just like the demo does https://github.com/navit-gps/navit/blob/07006013135b619029f26df579a0ac6acb86cd4a/navit/vehicle/demo/vehicle_demo.c#L121

It is also mentioned that the lag option went away, i assume this is where the tunnel extrapolation went away as well: https://github.com/navit-gps/navit/issues/671 Is this the case? If so, why?

ummerland avatar Jul 18 '19 10:07 ummerland

Got myself a Raspberry Pi 4 4 Gb, installed Raspbian and Navit. Works like charm. However, when i add the tag: lag="10" or lag="1", Navit crashes. Iam using latest Rasbian light and Navit. As well as GPSD. GPS Mouse: NAVILOCK GPS NL-602U. Any ideas what the problem could be? Did i miss a setting or tag/option that has to be active? My Navit.xml is stock. Just added a Map and thats it.

Steven1408 avatar Feb 11 '20 19:02 Steven1408

This is a solved problem. Check issue #826 I think its also a bit off topic here.

gefin avatar Feb 11 '20 19:02 gefin

thanks for your answer, Im confused, so this should be fixed with my Navit version? since I got the latest Raspbian and installed Navit from there? Or maybe Raspbian does not have the latest? I think iam missing something. I saw the post, since that came up during searching but was unsure since its from September and my raspbian and navit is fresh.

Steven1408 avatar Feb 11 '20 19:02 Steven1408

My current config in navit.xml contains the lag tag and it works quite well.

In the vehicle tag i have: You probably need to adjust the source, i am working in Windows.

And tracking:

I think tunnel extrapolation is still not working.

ummerland avatar Feb 11 '20 20:02 ummerland

Forgot that tags vanish: vehicle: follow="1" lag="20" enabled="yes" active="1" source="serial:COM5 baud=9600 parity=N data=8 stop=1" name="GPS" profilename="car"

tracking: route_pref="2200"

ummerland avatar Feb 11 '20 20:02 ummerland

The Raspian builds look quite old. As far as I can see, it is based on 0.5.0, which was released on Dec 31, 2015, more than four years ago. A lot of bugs have been fixed since then. For the moment, that means you’ll have to build Navit by yourself if you want to enjoy those. On the long run, we might want to make sure Debian has a recent version of Navit, see #876.

mvglasow avatar Feb 11 '20 20:02 mvglasow

Thank you mvglasow for checking. 4 years! Wow. Last time i tried building navit it failed on raspbian and i got desperate. I will give it a try.

Steven1408 avatar Feb 11 '20 20:02 Steven1408

Actually, buster (latest stable) has 0.5.3. Since 0.5.4 was only released recently, that is not too bad. Stretch is still on 0.5.0, you might want to upgrade your distro. I see @aerostitch (who is also a project member) is one of the maintainers, thus I’d expect upgrades to propagate to the repo fairly quickly now—subject only to our own release cycle and that of Debian.

mvglasow avatar Feb 11 '20 21:02 mvglasow

You might want to go to snapshot.debian.org and pull the deb packages for more recent releases from there. The binaries section has the pre-built ones.

aerostitch avatar Feb 11 '20 22:02 aerostitch

Just want to say that I updated from Buster to Bullseye testing and got myself 0.5.4. Now everything works and is fine. Except my GPS Cursor is not moving when for example, driving. But on first loading its showing the correct position. I suspect something is not compatible between the old navit.xml and new *.xml file? Cgps, Xgps works fine as well as gpsd. mhmm #559 seems like my problem now..

Steven1408 avatar Feb 16 '20 12:02 Steven1408