maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Navit GPS (and libgarmin) for os2008 (https://talk.maemo.org/showthread.php?t=18093)

dwould 2009-01-14 12:40

Re: Navit GPS (and libgarmin) for os2008
 
Lemmyslender... see my post at top of page, you can increase the font size in osd. but so far I've not figured out how to make the boxes bigger. So you can end up with cropped text.

I've started looking at the actual source, but given I'm not really a c programmer, and there are basically no comments in the code it could take me a while to get to grips with it.

lemmyslender 2009-01-14 14:03

Re: Navit GPS (and libgarmin) for os2008
 
dwould-

That's what I figured, just thought I'd ask. I've tried changing some of the font size lines for poi's etc in the navit.xml file, but it won't load after that.

I suspect that it would look much better (almost readable) on a 320x240 or 480x320 screen (WinCE/Palm devices).

Not much documentation out there to look at.

Couldn't get any garmin maps to load last night using the libgarmin deb from March, including the base map from garmins free download.

It does seem to be getting better / more usable with each svn iteration though.

gerritv 2009-01-14 16:13

Re: Navit GPS (and libgarmin) for os2008
 
dwould: regarding your post #119 Check:
1. Makefile.am in navit/xpm should have 2 lines such as (near end of file)
DESKTOPFILEdir=$(datadir)/applications
DESKTOPFILE_DATA = desktop_icons/navit.desktop
2. Debian/postinst should have a section like this:
if [ -f /usr/share/applications/navit.desktop ]
then
mv /usr/share/applications/navit.desktop /usr/share applications /hildon/navit.desktop


If the postinst is wrong let me know and I will fix my copy on the web site.

Gerrit

dwould 2009-01-14 16:48

Re: Navit GPS (and libgarmin) for os2008
 
Gerrit
the debian postinst script I have does not appear to have any such lines. the closest thing is:
( cd /usr/share/applications/hildon/ && mv navit.inactive navit.desktop)
I 'fixed' my building problem by commenting out this.

So I suspect the pstinst does need updating with whatever is your latest

wdehoog 2009-01-17 20:42

Re: Navit GPS (and libgarmin) for os2008
 
I also got the missing navit.desktop file problem while building the package and solved it by changing xpm/Makefile.am

DESKTOPFILEdir=$(datadir)/applications

into

DESKTOPFILEdir=$(datadir)/applications/hildon

By the way 'debian/rules binary' did not work for me. I had to use dpkg-buildpackage -rfakeroot

Unfortunately I cannot get any map file displayed. It seems to load them (does not complain) but displays nothing.

gerritv 2009-01-18 02:25

Re: Navit GPS (and libgarmin) for os2008
 
Hi wdehoog
the map will display only if a GPS position is received? On the otherhand if you do everything out of the box and include Samplemap then the default start location is such that the German map will show (forget which city)

I will be tinkering with the Makefile soon to remove the need for postinst script hacks to place .desktop and .service in correct directory. Initially I couldn't do this because the automake in Scratchbox was picking an old version that didn't support if/else in Makefile.am files. doing 'export SBOX_DEFAULT_AUTOMAKE=1.9' before running 'autogen.sh' fixes that problem.

gerritv 2009-01-18 02:29

Re: Navit GPS (and libgarmin) for os2008
 
Just to let everyone know, I just submitted the code changes to make Navit an osso application on the N800. This will get rid of the 'it runs for 2 minutes and exits' problem. It should be in the SVN version in a day or so.

Gerrit

murphy 2009-01-18 09:38

Re: Navit GPS (and libgarmin) for os2008
 
Is there a way to force the backlight always on (like Maemo Mapper in fullscreen mode) ?
I haven't found an option for this in navit.xml.
For now I use Maemo Mapper in backgrounded fullscreen to have the backlight always on (and that make the tablet slow!).

lemmyslender 2009-01-18 15:13

Re: Navit GPS (and libgarmin) for os2008
 
Also looking for a way to keep the back light on as well. Haven't had any problems running for more than 2 minutes?? Runs just fine for 10-15 minutes.

Most of the problems I see are with routing, which I think mostly relate to the openstreet maps in my area (ohio). It seems that I can map short local routes <20 miles to most places. Some longer ~100mile routes will work, most don't. I still see (although havn't checked the last couple svn releases) routing from highway to cross street when no ramps are available.

dwould 2009-01-19 11:43

Re: Navit GPS (and libgarmin) for os2008
 
I found a post from penguinbait somewhere online that contained this info:
gconftool-2 --type "list" --list-type "int" --set "/system/osso/dsm/display/possible_display_dim_timeouts" "[10,30,60,120,300,600,1200,1800,3600,86400]"

gconftool-2 --type "list" --list-type "int" --set "/system/osso/dsm/display/possible_display_blank_timeouts" "[10,30,60,120,300,600,1200,1800,3600,86400]"

I added these to my startup and choose in control panel from up to 24hours or 1440 minutes

Should work on n810
I've tried it and it does let me select 1440 minutes for screent staying lit. but screen will still 'dim' after 2 minutes. There is also the option to say that the light does not go off if charging.
so I think setting the dim value up to full brightness, and charging it whilst in the car, etc should mean we can keep the brighteness up whilst in use.

murphy 2009-01-19 12:29

Re: Navit GPS (and libgarmin) for os2008
 
Thanks, these commands apparently works for my n810 (I've selected 60mn and light is on since 5 min for now).

Any idea to display GPS data on the OSD ?
I'd like to have the fix info and number of GPS (locked and not) because we have no info to know if the GPS is ok or not.

dwould 2009-01-19 20:20

Re: Navit GPS (and libgarmin) for os2008
 
Erm yes and no. There is an osd item for vehicle_gps_satnum, but I've not managed to get it to show me any information. I have however updated the wiki: http://wiki.navit-project.org/index....ration_options
To show the display options I'm now using for my n810 Basically setting out the various OSD items and making everything much bigger than the default.
This is what I'd hoped to achieve, and as I suspect I just needed to read the code enough to figure out what was already there, rather than having to add anything new.
I'll keep reading to find out what else I can confgirue.

wdehoog 2009-01-19 21:12

Re: Navit GPS (and libgarmin) for os2008
 
Hi gerritv,

In response to #126: I got it working. The maps look very nice. Browsing the map is rather slow though.

wdehoog 2009-01-20 22:06

Re: Navit GPS (and libgarmin) for os2008
 
1 Attachment(s)
Hi,

I made a small patch to have the menu key toggle the visibility of the menu and toolbar. Together with hiding the statusbar (through navit.xml) it gives me what I want: a full screen map and access to the menu/toolbar if needed.

In case anybody else wants to try it please see the attachement. (It is an svn diff and I have no idea how to apply such a patch.)

lemmyslender 2009-01-21 01:42

Re: Navit GPS (and libgarmin) for os2008
 
dwould- Thanks for the work decyphering the settings and adding them to the wiki. Mine won't show the sat info, speed, or either street name. I took your settings and re-arranged it using font_size="400" (about as small as I can stand, I may redo it for 500), and adjusted the settings so that it scales properly from windowed to full screen.


wdehoog - I'd like to be able to use the statusbar/menu as well, hopefully someone can incorporate your work.

If anyone wants, the settings are as follows:

Edit
The settings are no longer valid, please refer to the wiki http://wiki.navit-project.org/index....ration_options for the latest example settings

gerritv 2009-01-22 01:07

Re: Navit GPS (and libgarmin) for os2008
 
Hi

http://pastebin.com/d47df9142 has the fix for all 3 missing OSD display issues. the p.x variable was uninitialized in all 3, resulting in values that were off screen by a large margin. I submitted the fixes to the Navit team so that it becomes part of the SVN in the next few days.

Gerrit

gerritv 2009-01-26 02:59

Re: Navit GPS (and libgarmin) for os2008
 
Hi alll l
I have screen unblank working for Navit on the N8x0. Options are GPS, fullscreen and never, default is fullscreen. Fullscreen only unblanks if you are in fullscreen, etc. I will update here when the code is in SVN.

Gerrit

dwould 2009-01-26 11:24

Re: Navit GPS (and libgarmin) for os2008
 
Thanks Gerrit!
I was looking on the track.navit-project site, it's not easy to tell if anything is being done with the fixes you've supplied. As the raiser are you getting any feedback on when they might apply your patches?

lemmyslender 2009-01-26 15:15

Re: Navit GPS (and libgarmin) for os2008
 
Very cool. Can't wait to see these added to the SVN.

I had problems routing with 1965/1966, if GPS was on it would take a very long time to complete a route if ever. 1968 has corrected this, I think it may even be slightly faster than before.

gerritv 2009-01-26 15:55

Re: Navit GPS (and libgarmin) for os2008
 
Hi
My fixes/enhancements are in the queue. The team is very busy but I'm sure they will get to the N8x0 specific stuff soon.

I am thinking of moving some items around on the Internal GUI (I no longer use gtk one.., thanks to dwould :-)). E.g. moving Quit from Actions onto the main level (where Action is) Fullscreen is an OSD button so it can stay where it is in the menu's.

? for you, do all the icons show up on the Internal GUI?

dwould 2009-01-26 16:02

Re: Navit GPS (and libgarmin) for os2008
 
Hi Gerrit,
One thing I've noticed in the menu is that 'tool's displays as a top level choice but apparently does nothing (for me at least)

The one thing about the layout I dislike, which I was planning on looking into, is that 3d isn't a setting which 'sticks' past a re-load. and it's a few layers down to go switch it on.

lemmyslender 2009-01-26 18:18

Re: Navit GPS (and libgarmin) for os2008
 
"Tools" does nothing here either. I think I have most of the OSD stuff on the screen, including the toggle_announcer and speed_warner.

As noted earlier street names and speed have no information, only boxes. Not sure what the speed warner is supposed to do. The announcer button only has a small blue box with a question mark.

Edit* Is there a way to get numbers on the onscreen keyboard? I've typed in towns, but for streets, you occasionally need numbers. Am I missing it somewhere?

gerritv 2009-01-27 03:09

Re: Navit GPS (and libgarmin) for os2008
 
Hi
The Tools button is not connected to anything, I will try to get it removed.
The OSD items are pending checkin into SVN, once there those items will work for you.
Not sure what it takes to modify the screen keyboard, the source code will tell :-)

casper27 2009-01-27 14:23

Re: Navit GPS (and libgarmin) for os2008
 
Hi guys nice application. Im trying it out in Cyprus with a OS map. All going well but a few routing issues. When typing in a destination I can only type in 2 letters of the city name, if I type a 3rd letter in the application crashes. Just downloaded the latest version 27/01/2009. Having a bit of an issue getting flite to work aswell. Typed in the command but still does not speak.

lemmyslender 2009-01-27 17:29

Re: Navit GPS (and libgarmin) for os2008
 
All I had to do to get speech working was install flite and un-comment the line about speech/flite in navit.xml

I am able to type the whole name of the cities I'm searching for without crashing.

Most of the time when routing fails, I find that it is due to a defect on OSM maps. The exception is that it still routes as if bridges do not exist (Turn from street on to highway, no ramps present).

I also found that by editing navit.xml section on navigation, change street_1_city from 10 to 20 or 30 helps improve routing as well.

deft 2009-01-27 17:32

Re: Navit GPS (and libgarmin) for os2008
 
I hope it doesn't break up the discussion much to field a question from a total n00b but here goes.

First off thanks to the developers working on Navit, it looks like an awesome app.

I managed to get it installed automagically via the one-click-install link here;
http://tech.visser-scully.ca/?page_id=23
but since it only comes with a map of Munich of course I'll need to load my own.

I used the 'Planet extract' tool here; http://maps.navit-project.org/download/
.. which produced a "a binary file that can be used directly by Navit without further processing." this is where I have trouble. I copied that .bin file to my N800, I used xterm to locate Navit's .bin file and .xml of the Munich map -- but the dir is owned by root and I haven't found a way to get root access yet - so I can't write any files there.

Do I need to reinstall OS2008 with the R&D package (is it required to get root?) just to load new maps? Is there another way I'm not seeing?

any help would be greatly appreciated, thank you

casper27 2009-01-27 17:41

Re: Navit GPS (and libgarmin) for os2008
 
There are a few ways to gain root. The way I did it was to download a App called GODMODE from the application manager. This enables Root access by entering the command Sudo Gainroot in xterm. I think you may need to be in Red Pill mode to download it from the application manager. If you search on the forum there are many threads covring both these issues in detail.
@Lemmyslender Thanks for the reply I will try deleting the Flite paragraph see if that works. I think it may be the map I have that is restricting the route service

ernia 2009-01-27 17:52

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by deft (Post 260210)
I
... I copied that .bin file to my N800, I used xterm to locate Navit's .bin file and .xml of the Munich map -- but the dir is owned by root and I haven't found a way to get root access yet - so I can't write any files there.

Do I need to reinstall OS2008 with the R&D package (is it required to get root?) just to load new maps? Is there another way I'm not seeing?
...

you don't need to be root to use navit, you can just put the map where you have write access, then copy the /usr/share/navit/navit.xml to /home/user/.navit/navit.xml and edit it to point to your map.

gerritv 2009-01-27 19:54

Re: Navit GPS (and libgarmin) for os2008
 
Another fix is in the queue, trac 283 covers the 'Navit doesn't exit when using gui/internal with gtk_drawing for graphics'. The X icon at top rh of screen was not connected to anything in the code, thus it closed the window but not the application. (It is connected if you use gui gtk)
The patch is in the trac so if you are impatient you can compile it in.

Gerrit

ps. ernia has the best solution to editing navit.xml. Another benefit to placing the file there is that it is not replaced when you re-install Navit. I also place my maps on the internal memory card.

lemmyslender 2009-01-27 21:32

Re: Navit GPS (and libgarmin) for os2008
 
You can also specify a navit.xml to use when loading. I use Personal Menu / Personal Launcher and edit the command to read

navit /path to/navit.xml in my case: navit /media/mmc2/maps/navit.xml

That way I was able to quickly start either internal or use navitgtk.xml (navit.xml edited to use gtk interface) to start the GTK version. I also do that to try different settings for the OSD when editing navit.xml, or load different maps without having to edit navit.xml every time.

More advanced, i used the xinclude to break out the setting into several files to make it easier to edit. I have maps.xml, poi.xml, osd.xml, and a couple others so I can quickly find only what I want to change (and not have to edit both navit.xml and navitgtk.xml to keep some of the settings consistent). Probably more trouble than it's worth though.

deft 2009-01-28 07:28

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by ernia (Post 260213)
you don't need to be root to use navit, you can just put the map where you have write access, then copy the /usr/share/navit/navit.xml to /home/user/.navit/navit.xml and edit it to point to your map.

Thanks, I did do this, and made a corresponding .xml file pointing to the .bin like the one used with the sample map. Navit loads and seems to show ..a map of sorts.. mostly blank except along one axis showing ... bits and pieces of rivers & highways north of London and if I scroll south for a while, Africa - the Congo.

I see that in the navit.xml config file there is a line to set the center of the map, but of course I can't write to that.. I suppose I'll use one of the methods to get root access now.

another odd thing is that if I double tap on the map anywhere Navit dies suddenly with no error message.

ernia 2009-01-28 08:35

Re: Navit GPS (and libgarmin) for os2008
 
by editing as user /home/user/.navit/navit.xml you get the same results (running navit as user) as you were editing as root /usr/share/navit/navit.xml.
you can download pre-built maps bin files here:
http://downloads.cloudmade.com/
and learn more about navit.xml here:
http://wiki.navit-project.org/index....figuring_Navit
be careful about the format of center of the map coordinates, read carefully navit.xml about that.

casper27 2009-01-28 13:30

Re: Navit GPS (and libgarmin) for os2008
 
Anyone else got a file called knobhead" in there navit share file?

lemmyslender 2009-01-28 14:25

Re: Navit GPS (and libgarmin) for os2008
 
deft, sounds like you need to set the coordinates for your initial location. You can also adjust the default zoom level as well. There should be a zoom="xxx" just to the right of the coordinates. I think I changed it from 128 to 64.


dwould/gerritv any ideas on the new settings for the osd the latest svn, 1979 "major cleanup in osd" seems to have eliminated eta, street, next street, sat info, and speed. Looks like it was replaced with osd_text?? maybe with some settings (format / attrib) to indicate which text you want displayed?

Looks like settings for speed, arrival destination time, remaining destination time are available. Played with it last night for a while, couldn't figure it out. I am not a programmer though, and may be missing something?

dwould 2009-01-28 15:19

Re: Navit GPS (and libgarmin) for os2008
 
Lemmyslender, I shall try to take a look tonight to see what's changed. I did see that gerrit's fix for the items that didn't display has been canceled as unnecessary due to this update.

gerritv 2009-01-28 16:02

Re: Navit GPS (and libgarmin) for os2008
 
Hi
the new style OSD config is at approx the 19:03 mark in this file. I'm sure he default navit.xml will have examples once the mod is finalized. I know it displays at least the sat_nums stuff. Due to weather here I don't feel like venturing out to try the other items with live gps.

Gerrit

dwould 2009-01-28 16:23

Re: Navit GPS (and libgarmin) for os2008
 
ok so for example you can now have:
<osd enabled="yes" type="text" label="${vehicle.position_speed}" x="360" y="10" font_size="450" w="180" h="50"/>
to show the speed.
I don't have time now, but assuming someone doesn't beat me to it I'll update the wiki later with my layout version using the new format.

dwould 2009-01-28 20:52

Re: Navit GPS (and libgarmin) for os2008
 
Ok I've updated the wiki: http://wiki.navit-project.org/index....ration_options
with a new layout using the new options. Everything seems to work ok, although getting lots of 'null' displayed when there is no data to show is a little annoying.
The new style is pretty cool, since they are now all free text boxes you can add text to the layout (which I've done) or you can just have the raw figures.
If anyone plays with better/different layouts it would be cool to add them to the wiki. I'm going to download a screenshot prog and see if I can't upload an image of what my layout looks like.

gerritv 2009-01-28 21:55

Re: Navit GPS (and libgarmin) for os2008
 
Hi
Super write up, thank you.
The <null> will go away with the next SVN build, a change was checked in this morning. I will push a bit to get my other changes into SVN as well.

dwould 2009-01-28 21:59

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

The <null> will go away with the next SVN build, a chance was checked in this morning.
Cool, I've also just tweaked the display setup on the wiki, and added a picture to show it in action.

Things starting to come together.

Any ideas on ways we might improve the performance of navit on the n810?

And on a separate note, is there a good source of info on tags to use when editing open streetmap to most benefit Navit usage?


All times are GMT. The time now is 22:19.

vBulletin® Version 3.8.8