Navit is an Open Source navigation software which also runs on Kindle Touch.
Due to the window title filtering of the KT windowmanager the ready-made version from Debian does not show up on the display.
A lot of the Navit features are configurable in navit.xml. But the window title is hard coded.
Therefore I recompiled a patched version of the current
svn repo.
The patch:
The window title is defined in windowtitle.h:
Code:
#define WINDOW_TITLE "L:D_N:application_ID:navit"
Configuration:
Compiling directly on KT Debian I had some troubles with configure and needed to change config.h manually. Sry, no diff. But only two or three defines.
Navit seems to have no multitouch capabilities and therefore pinch-zoom does not work. While riding/driving zoom buttons are easier to use. That and other options can be defined in the navit.xml. The following patch to navit.xml does not show color adjustments of the map.
Spoiler:
Code:
--- navit/navit.xml 2012-10-28 09:44:04.000000000 +0100
+++ /home/tt/navit.xml 2012-10-28 09:34:47.000000000 +0100
@@ -34,7 +34,8 @@
<navit center="4808 N 1134 E" zoom="256" tracking="1" orientation="-1" recent_dest="250">
<!-- Use one of gtk_drawing_area, qt_qpainter or sdl.
On windows systems, use win32 -->
- <graphics type="gtk_drawing_area"/>
+ <graphics type="gtk_drawing_area" w="600" h="800" enabled="yes"/>
+ <graphics type="sdl" w="600" h="800" enabled="no"/>
<!-- The following line let you select which graphical user interface you'd like to use.
Options include internal (optimized for touch screen devices), gtk (useful for desktop computers).
If you don't like the internal gui, set enabled=yes for the following tag and enabled=no for the gui internal tag -->
@@ -111,12 +112,12 @@
Usage of negative values change the button origins. x="0" y="0" specifies the top left, x="-0" y="-0" the bottom right corner.
It's always the top left corner of the icon, so you need to consider the icon's size when you enter the values. -->
<osd enabled="no" type="button" x="0" y="0" command="gui.fullscreen=!gui.fullscreen" src="toggle_fullscreen.png"/>
- <osd enabled="no" type="button" x="-96" y="0" command="gui.menu(1)" src="menu.png"/>
- <osd enabled="no" type="button" x="-96" y="-96" command="zoom_in()" src="zoom_in.png"/>
- <osd enabled="no" type="button" x="0" y="-96" command="zoom_out()" src="zoom_out.png"/>
+ <osd enabled="yes" type="button" x="-96" y="0" command="gui.menu(1)" src="menu.png"/>
+ <osd enabled="yes" type="button" x="-96" y="-96" command="zoom_in()" src="zoom_in.png"/>
+ <osd enabled="yes" type="button" x="0" y="-96" command="zoom_out()" src="zoom_out.png"/>
<!-- Vehicle with GPS enabled for gpsd on unix -->
- <vehicle name="Local GPS" profilename="car" enabled="yes" active="1" source="gpsd://localhost" gpsd_query="w+xj">
+ <vehicle name="Local GPS" profilename="bike" enabled="yes" active="1" source="gpsd://localhost" gpsd_query="w+xj">
<!-- Vehicle with GPS enabled for direct communication on windows. Remove the line above if you use this. -->
<!-- <vehicle name="Local GPS" profilename="car" follow="1" enabled="yes" active="1"
source="serial:COM4 baud=4800 parity=N data=8 stop=1" > -->
@@ -128,7 +129,7 @@
<!-- For SDL, you should add follow="1" to have the view centered on your position -->
<!-- <vehicle name="Meins" enabled="yes" source="gpsd://localhost" color="#0000ff" follow="1"/> -->
- <vehicle name="Demo" profilename="car" enabled="no" active="yes" source="demo://"/>
+ <vehicle name="Demo" profilename="bike" enabled="no" active="yes" source="demo://"/>
<!-- For the cumulative displacement filter to be enabled, set cdf_histsize="x" here, with x being an integer somewhere around 4 -->
<tracking cdf_histsize="0"/>
I thought enabling the main menu button would disable the jump to main menu when touching the map at any place. But the does not help.
TODO:
* build a kernel with USB OTG support in order to connect a GPS receiver
* disable jump-to-main-on-touch
* configure map colors and text sizes for better readability.
* get SDL framebuffer version running.