diff options
author | OLFDB <olf@eisenzelt.de> | 2021-04-03 08:11:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 08:11:52 +0200 |
commit | 1effb2462fc787894308e0aafcbd7cc10e77390c (patch) | |
tree | 2d4f3cc02bc7f78613a1dda491fc46d1e20ae31b /navit/vehicle | |
parent | 1e32e2ed7d76851dcfcef95280d52bb8693c6c08 (diff) | |
download | navit-1effb2462fc787894308e0aafcbd7cc10e77390c.tar.gz |
added:core:make it switch to nightlayout when we are in a tunnel (#1089)
* Address ToDo : make it switch to nightlayout when we are in a tunne
Nightlayout is enabled when available and streetflags & AF_UNDERGROUND is true
* Addresses ToDo: make it switch to nightlayout when we are in a tunnel
* Delete navit.c
* Applied suggested changes from review
* Applied changes from review
* Fix: Fix formatting of file to pass sanity check
* Using tracking->tunnel
* Update update_download_center.sh
* Update config.yml
* attributes tunnel_nightlayout, nightlayout_auto, sunrise_degrees added
* Use tracking_get_current_tunnel to access tracking object
* Revert "Update update_download_center.sh"
This reverts commit 0df8099a4533553f837a6f679899cc1a3aefc057.
* Revert "Update config.yml"
This reverts commit c1cae2e5f3f7f0fe48af0ddf1414ac6e86f36bba.
* removed todo for nightlayout in tunnel
* removed debug output
* Update navit.c
Do not return if there is a day layout
Co-authored-by: Stefan Wildemann <stefan.wildemann@corpuls.com>
Co-authored-by: Stefan Wildemann <metalstrolch@users.noreply.github.com>
Diffstat (limited to 'navit/vehicle')
-rw-r--r-- | navit/vehicle/gpsd/vehicle_gpsd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/navit/vehicle/gpsd/vehicle_gpsd.c b/navit/vehicle/gpsd/vehicle_gpsd.c index 92d663ef9..9dbc18aa4 100644 --- a/navit/vehicle/gpsd/vehicle_gpsd.c +++ b/navit/vehicle/gpsd/vehicle_gpsd.c @@ -26,6 +26,7 @@ #include <gpsbt.h> #include <errno.h> #endif +#include "config.h" #include "debug.h" #include "callback.h" #include "plugin.h" @@ -208,9 +209,10 @@ vehicle_gpsd_callback(struct gps_data_t *data, const char *buf, size_t len, data->set &= ~LATLON_SET; } // If data->fix.speed is NAN, then the drawing gets jumpy. - if (! isnan(data->fix.speed) && priv->fix_type > 0) { - callback_list_call_attr_0(priv->cbl, attr_position_coord_geo); - } + //if (! isnan(data->fix.speed) && priv->fix_type > 0) { + + callback_list_call_attr_0(priv->cbl, attr_position_coord_geo); + dbg(lvl_info,"speed ok"); } |