maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] modRana: a flexible GPS navigation system (https://talk.maemo.org/showthread.php?t=58861)

niboR 2012-07-12 06:39

Re: [Announce] modRana: a flexible GPS navigation system
 
How good is it for tracking my time on a race track? Racechrono doesn't have maemo support (and I doubt it never will) and I have a spare N900 which I could mount on my bike to track my lap times. I've been searching for a software for that but haven't found one yet.

Read the the thread and couldn't find an answer so I'm just asking :rolleyes:

Evok 2012-07-12 11:27

Re: [Announce] modRana: a flexible GPS navigation system
 
"This looks like outdated Qt version.
( the PinchArea is available in QML since Qt 4.7.4). Do you have CSSU installed ? From the log it looks like you are just running PR 1.3, which has only Qt 4.7.0.

Basically -> no, CSSU == no modRana QML (but you can still use modRana with the classic GUI just fine"


A Follow-up for Martin to your comments above:
My ignorance! I had installed CSSU Features & not the full CSSU! Once I installed the full CSSU, modRana QML works perfectly now. Thanx :D

Evok 2012-07-13 15:30

Re: [Announce] modRana: a flexible GPS navigation system
 
Hi Martin, An issue I cannot solve in modRana.... When I plot a route (as per your instructions - Getting a route), from current position to the destination and I click on the "route" button, the screen shows geocoding start and starts counting up in seconds but nothing happens? Any ideas as to a solution?
Thanx :confused:

7thd 2012-07-15 11:12

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by 7thd (Post 1236314)
In earlier versions I connected to hotspot (other N900), too and downloaded maps without any problems. Downloading didn't happen, (...)

Retested this: itīs not an issue; modRana flawlessly found erm Jakarta, Indonesia.

Wikiwide 2012-07-16 09:52

Re: [Announce] modRana: a flexible GPS navigation system
 
Quick reply...
Not sure if it's the issue, Evok, but routing is (at least, now) only possible if Internet (more precisely, Google routing) is available. As far as I know, absence of Internet will not cancel the routing, so when Internet is turned on, the route is found (even if it is several hours later? as long as you haven't cancelled it by then).
If the behaviour ("geocoding..." instead of routing) persists when Internet is available, see if there are any errors logged. (Shrugging - I don't use routing (especially online routing) much (if at all), so I can only hope my advice helps).

Evok 2012-07-17 09:19

Re: [Announce] modRana: a flexible GPS navigation system
 
Final outcome.... Thanks to 'Wikiwide' pointing me in the right direction and for Martins patience, I have now managed to get EVERYTHING to work in modRana, including spoken directions in English (using eSpeak) & more importantly the routing between two points. I think the problem was that I didn't realize that there HAD to be an internet connection for 'getting a route' (I used my home WiFi link)
Many thanx for a great APP. :cool:

Estel 2012-07-20 12:17

Re: [Announce] modRana: a flexible GPS navigation system
 
Can't wait for Monav offline routing support :) Thumbs up!

MartinK 2012-07-20 23:01

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Evok (Post 1238620)
Final outcome.... Thanks to 'Wikiwide' pointing me in the right direction and for Martins patience, I have now managed to get EVERYTHING to work in modRana, including spoken directions in English (using eSpeak) & more importantly the routing between two points. I think the problem was that I didn't realize that there HAD to be an internet connection for 'getting a route' (I used my home WiFi link)
Many thanx for a great APP. :cool:

Nice to hear that ! :)

Quote:

Originally Posted by Estel (Post 1240247)
Can't wait for Monav offline routing support :) Thumbs up!

I'm actually currently working on routing in modRana to be more flexible, so that more features can be added and more routing providers supported.

Regarding Monav - do you (or someone else) know whats the status of Monav (or its routing daemon) on Fremantle ? I know that Marble is using it, but thats probably directly through the C++ API. Does Monav have a working CLI interface or Python bindings so that modRana can also interface with it ?

MartinK 2012-07-20 23:26

Re: [Announce] modRana: a flexible GPS navigation system
 
Oh and by the way...

modRana V0.33.1 has been released !

Whats new ?
  • automatic rerouting
  • faster online routing
  • miscantelous

Automatic rerouting
ModRana now automatically reroutes if you leave the from the route.

How does it work ?
While following a route, modRana checks every 5 seconds the distance from all line segments that the route consists of and remembers the minimum distance. If the minimum distance is more than a given threshold (30 meters by default, can be changed in options->Navigation->Rerouting), it does 3 more checks in 1 second intervals, to weed out any temporary diversions or temporary GPS errors. If all 3 checks are positive, rerouting is triggered.

In short - the threshold defines a corridor around the route, if you leave it, modRana will reroute.

To prevent unnecessary reroutes, automatic rerouting is not activated until you "reach" the route for the first time. To "reach" a route just enter its "corridor".

Automatic rerouting is also disabled once you reach the destination of your current route.

How to check if automatic rerouting is enabled ?
Check out the navigation info box, there should be automatic rerouting enabled in the lower left corner.

How to completely disable automatic rerouting ?
In options->Navigation->Rerouting set Rerouting trigger distance to disabled.


Faster online routing
Start and destination address geocoding has been decoupled from online route search, making online route lookups faster. The address info is not lost - modRana simply triggers start & destination geocoding once the route detail menu is first entered.

Miscantelous
  • faster algorithms for computing geographic distance, based on code from Marble
  • cleaner route handling - needed for future work (including Wikiwides manual routing, adding support for more providers, restoring route on startup, routing on GPX files, etc.)

shady 2012-07-21 16:06

Re: [Announce] modRana: a flexible GPS navigation system
 
why do i get a grey screen?

MartinK 2012-07-21 16:37

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by shady (Post 1240861)
why do i get a grey screen?

Can you provide some more information how you got the the gray screen in modRana ? Also, did you run modRana or modRana QML ?

magic_doc 2012-07-22 10:12

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1240539)
Oh and by the way...

modRana V0.33.1 has been released !

[...]

Hello,

I have an issue with recording a track: as I understood it, modrana should record a point every single second and save the file all 10 seconds per default, that's right?
That does not work for me, it only records points when I switch on the display.
When I lock the device and continue traveling, the next time I unlock the device, it shows me my current position and a straight line from the last point to the current one without having recorded any points in between.

There were some issues concerning recording in the past years and as I told you it is a clean reinstall, could anyone try to reproduce this to verify it is a bug?

CU & HANW Michael

MartinK 2012-07-22 10:51

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by magic_doc (Post 1241154)
Hello,

I have an issue with recording a track: as I understood it, modrana should record a point every single second and save the file all 10 seconds per default, that's right?
That does not work for me, it only records points when I switch on the display.
When I lock the device and continue traveling, the next time I unlock the device, it shows me my current position and a straight line from the last point to the current one without having recorded any points in between.

There were some issues concerning recording in the past years and as I told you it is a clean reinstall, could anyone try to reproduce this to verify it is a bug?

CU & HANW Michael

There seems to be a regression in track-logging at the moment & I'm working on fixing it. :)

shady 2012-07-22 15:29

Re: [Announce] modRana: a flexible GPS navigation system
 
thanks for the reply martink i appreciate it. is there a log for when the application starts up? either way the location indicator stays in the top left, no tiles load but the gps gets a lock. im not sure what to do.

thanks

MartinK 2012-07-22 22:46

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by shady (Post 1241260)
thanks for the reply martink i appreciate it. is there a log for when the application starts up? either way the location indicator stays in the top left, no tiles load but the gps gets a lock. im not sure what to do.

thanks

Just start modRana in xterm by typing this:
Code:

modrana
And post the output. :)

Ken-Young 2012-07-23 00:29

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1240539)
[...]
Automatic rerouting
ModRana now automatically reroutes if you leave the from the route.

How does it work ?
While following a route, modRana checks every 5 seconds the distance from all line segments that the route consists of and remembers the minimum distance. If the minimum distance is more than a given threshold (30 meters by default, can be changed in options->Navigation->Rerouting),
[...][/LIST]

Thanks for adding automatic rerouting. Rather than using a fixed distance to trigger rerouting, would it not make sense to adjust the trigger radius based on the Horizontal Dilution Of Precision (HDOP)? If the trigger were, for example, 3 x HDOP then the program would automatically increase its tolerance for being off-route when the quality of the location information degraded. That seems to me to be the right behavior.

shady 2012-07-23 06:59

Re: [Announce] modRana: a flexible GPS navigation system
 
/home/user # modrana
== modRana Starting ==
modRana: loading options
process 8740: arguments to dbus_connection_get_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5757.
This is normally a bug in some application using the D-Bus library.
process 8740: arguments to dbus_connection_set_data() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5721.
This is normally a bug in some application using the D-Bus library.
Aborted


heres the output, thanks

MartinK 2012-07-24 12:18

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Ken-Young (Post 1241427)
Thanks for adding automatic rerouting. Rather than using a fixed distance to trigger rerouting, would it not make sense to adjust the trigger radius based on the Horizontal Dilution Of Precision (HDOP)? If the trigger were, for example, 3 x HDOP then the program would automatically increase its tolerance for being off-route when the quality of the location information degraded. That seems to me to be the right behavior.

Thats a good point and I really do want to integrate HDOP in the rerouting-check calculation. But as there might be another causes for false-alerts, namely routes that were mapped with a slight offset or routes that were mapped correctly, but then reduced in point count to reduce storage space (eq. you might get a straight line for a slightly curved route in the routing result), I would still like to let the user to set the rerouting distance to some arbitrary number manually, to get rid of excessive reroutes in some cases.

IMHO, just using a HDOP multiple won't work - if you have a very good HDOP (say <1 m), the real route differing just 3 meters from the computed one would trigger rerouting. A very bad HDOP (>100m) would result in a 300+ m corridor.

I made a simple image, illustrating all the different terms:
http://www.modrana.org/images/modRana_rerouting.png
The corridor around the route has the width of 2 rerouting thresholds and the real world route slightly differs from the computed one.

Possible algorithms that take HDOP into account:

Algorithm nr. 1
  • just add the current HDOP to the rerouting threshold
Good HDOP (3 m)
Threshold is increased only slightly.
EXAMPLE: 30 + 3
Bad HDOP (100 m)
Threshold increase should compensate for big HDOP.
EXAMPLE: 30 + 100

Algorithm nr. 2
  • if HDOP > 1/3*threshold, add HDOP to threshold
Good HDOP (3 m)
Threshold is not increased.
EXAMPLE: 30
Bad HDOP (100 m)
HDOP is added to the threshold.
EXAMPLE: 30 + 100

Algorithm nr. 3:
  • check if HDOP < (1/2)*rerouting_threshold (in meters)
  • if its larger, them rerouting threshold = 2*HDOP
Good HDOP (3 m)
Threshold is not increased.
EXAMPLE: 30
Bad HDOP(3 m)
Threshold is 2*HDOP.
EXAMPLE: 200

Algorithm nr. 4:
  • check if HDOP < (1/3)*rerouting_threshold (in meters)
  • if its larger, them rerouting threshold = 3*HDOP
Good HDOP (3 m)
Threshold is not increased.
EXAMPLE: 30
Bad HDOP(3 m)
Threshold is 3*HDOP.
EXAMPLE: 300

So what do you think ? Which one is the best and/or better algorithms come to your mind ? :)

And thanks a lot for the donation ! :D I'm sending your postcard right away. :)

Quote:

Originally Posted by shady (Post 1241467)
/home/user # modrana

Looks like you are starting modRana from xterm as root (as evident due with the # in your shell) - that won't work (just checked it at my N900, got the same error). Try to run it as a normal user. :)

shady 2012-07-24 13:59

Re: [Announce] modRana: a flexible GPS navigation system
 
~ $ modrana
== modRana Starting ==
modRana: loading options
N900: dbus initialized
N900 device specific module initialized
* device: A N900 modRana device-specific module (850.00 ms)
GTK GUI: size allocation <GdkRectangle at 0x3133c0>
error in screen invalidating functionexception: 'NoneType' object has no attribute 'invalidate_rect'
* gui: A GTK GUI module (170.00 ms)
importing modules:
* menu: Handle menus (50.00 ms)
* location: Supplies position info from a position source (0.00 ms)
* askMenu: A sample pyroute module (0.00 ms)
* interfaceFeedback: A sample pyroute module (0.00 ms)
* animatedMapView: A sample pyroute module (10.00 ms)
* icons: Draw icons (10.00 ms)
* cron: A GTK timing and scheduling module for modRana (0.00 ms)
* positionMarker: A sample pyroute module (10.00 ms)
* stats: Handles messages (10.00 ms)
* onlineServices: A module for talking to various online services (200.00 ms)
* options: Handle options (0.00 ms)
* input: Handle input from keyboard, buttons, etc. (0.00 ms)
@ mapTiles: map folder path: /home/user/MyDocs/.maps/
* mapTiles: Display map images (180.00 ms)
* display: A platform independent display device control module (230.00 ms)
* log: A modRana logging module (10.00 ms)
* projection: Projection code (lat/long to screen conversions) (0.00 ms)
* loadTracklogs: A sample pyroute module (10.00 ms)
* notification: This module provides notification support. (0.00 ms)
* route: Routes (100.00 ms)
* mapData: Handle downloading of map data (40.00 ms)
@ storePOI: POI database path:
@ /home/user/MyDocs/.maps/modrana_poi.db
@ storePOI: connection to POI db established
* storePOI: Store POI data. (50.00 ms)
* storeTiles: Single-file-fs tile storage (10.00 ms)
* markers: A module handling markers on the map. (0.00 ms)
* example: A sample pyroute module (10.00 ms)
* units: a unit handling module (0.00 ms)
* showPOI: Show POI on the map and in the menu. (10.00 ms)
* info: A modRana information handling module (0.00 ms)
* showGPX: draws a GPX track on the map (0.00 ms)
* updateTiles: Update stored map tiles. (0.00 ms)
* search: Search for POI (0.00 ms)
* clickHandler: handle mouse clicks (20.00 ms)
* messages: Handles messages (10.00 ms)
* sketch: Sketching functionality (0.00 ms)
* tracklog: Record tracklogs (0.00 ms)
* textEntry: A module for handling text entry. (0.00 ms)
* routeProfile: Creates a route profile (an elevation chart) (30.00 ms)
* turnByTurn: A turn by turn navigation module. (0.00 ms)
* keys: A keyboard input handling module (0.00 ms)
* voice: Handle text to speech. (10.00 ms)
* tracklogManager: Module for managing tracklogs (0.00 ms)
* config: Handle configuration, options, and setup (0.00 ms)
* showOSD: Draw OSD (On Screen Display). (0.00 ms)
* tileserver: A modRana built-in tileserver (30.00 ms)
* mapView: Controls the view being displayed on the map (0.00 ms)
Loaded all modules in 1070.00 ms, initialising
icons: switched theme to: default
location: starting GPSD 1 second timer
location: enabling location
** n900 - location: - GPS successfully activated **
n900 - location: activated
N900 rotation object initialized
N900: rotation object loaded
True
N900: key centred toggled
N900: key rotateMap toggled
N900: application menu added
** making a list of available tracklogs
* using this tracklog folder:
* /home/user/MyDocs/tracklogs
* there are 10 tracklogs available
**
mapView: switching map drag mode to default
mapView: switching centering disable threshold to 2048
display: keep display ON -> while there is a GPS fix
Initialization complete in 250.00 ms
** modRana startup timing **
# device: Nokia N900 (n900)
* modRana start (0 ms), 0/8260 ms
* imports done (634 ms), 634/8260 ms
* GUI creation (0 ms), 634/8260 ms
* window created (1988 ms), 2623/8260 ms
* map widget created (1 ms), 2624/8260 ms
* window finalized (54 ms), 2678/8260 ms
* all modules loaded (3470 ms), 6148/8260 ms
* all modules initialized (2113 ms), 8260/8260 ms
** whole startup: 8260 ms **
display: redraw ON (window not hidden or minimised)
TypeError: update() takes exactly 1 argument (2 given)
display: redraw ON (N900 window is active)
GTK GUI: size allocation <GdkRectangle at 0x2f28c0>
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
icons: not found
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
mapTiles: exception while drawing the map layer: float division
Traceback (most recent call last):
File "/opt/modrana/modules/mod_mapTiles.py", line 498, in drawMap
cx1,cy1 = (sw*(cx-px1)/pdx,sh*(cy-py1)/pdy) #this is basically the pxpy2xy function from mod_projection inlined
ZeroDivisionError: float division
display: redraw OFF (N900 window is not active)

boom! thanks again, appreciate the help

MartinK 2012-07-24 23:23

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by shady (Post 1242231)
boom! thanks again, appreciate the help

Thanks for the log ! I remember somebody mentioning a similar problem (that zero division error + gray screen) some time ago, but I was not able to reproduce it. Could you send me your /home/user/.modrana/options.bin file ? This is where modRana stores all its in-application-configurable settings. By loading your settings from this file, I 'might be able to reproduce the issue & fix it for good. Thanks a lot! :)

BTW, .modrana is a hidden folder, that is normally not visible from the file manager. But you can easily copy the file to MyDocs like this in the terminal:
Code:

cp /home/user/.modrana/options.bin /home/user/MyDocs/
Or move it there:
Code:

mv /home/user/.modrana/options.bin /home/user/MyDocs/
If modRana won't find the file, it will generate a new one, which might (temporarily ?) fix the issue.

7thd 2012-07-25 05:32

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1242509)
If modRana won't find the file, it will generate a new one, which might (temporarily ?) fix the issue.

(sidenote) I donīt have the same issue. But happened to notice that with every boot ModRana starts the same map layer and language etc. (whether or not I had changed them during last run).
So I looked for options.bin as well, but it wasnīt there to be found. I had [Show hidden files] on btw.

shady 2012-07-25 16:10

Re: [Announce] modRana: a flexible GPS navigation system
 
sent in a PM

Ken-Young 2012-07-26 03:22

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1242185)
Thats a good point and I really do want to integrate HDOP in the rerouting-check calculation. But as there might be another causes for false-alerts, namely routes that were mapped with a slight offset or routes that were mapped correctly, but then reduced in point count to reduce storage space (eq. you might get a straight line for a slightly curved route in the routing result), I would still like to let the user to set the rerouting distance to some arbitrary number manually, to get rid of excessive reroutes in some cases.

IMHO, just using a HDOP multiple won't work - if you have a very good HDOP (say <1 m), the real route differing just 3 meters from the computed one would trigger rerouting. A very bad HDOP (>100m) would result in a 300+ m corridor.

...

Possible algorithms that take HDOP into account:

Algorithm nr. 1
...

Algorithm nr. 2
...
Algorithm nr. 3:
...
Algorithm nr. 4:
  • check if HDOP < (1/3)*rerouting_threshold (in meters)
  • if its larger, them rerouting threshold = 3*HDOP

I think there's no real solution for the case that the route is offset or the route has been compressed by reducing the point count. Those problems may lead to unneeded reroutings however the threshold is set. The only solution is to not let the threshold get too small, no matter how it's defined.

I like your algorithm 4. You set a floor below which the threshold cannot fall, and have no discontinuity at the point where you start using HDOP information. If the HDOP is a one standard deviation radius, then 3 standard deviations is a good threshold.

It's nice that you're adding more parameters for us to tweak. One little advantage our poor orphaned OS has is that at this point it is likely that nearly all N900 owners are geeks. Somebody writing an Android app can't assume his users like to fiddle with the app's parameters, but we can.

sup 2012-08-07 14:00

Re: [Announce] modRana: a flexible GPS navigation system
 
Is it possible to store downloaded tiles somewhere else then in .maps folder? (i do not want them to be shared with mappero)

shady 2012-08-07 16:50

Re: [Announce] modRana: a flexible GPS navigation system
 
MartinK, were you able to find anything out using the file i sent?

woody14619 2012-08-07 17:17

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by sup (Post 1248707)
Is it possible to store downloaded tiles somewhere else then in .maps folder? (i do not want them to be shared with mappero)

I believe you can change where the maps are stored in the settings area. The default is the shared location for several apps (mappero and others). Why would you not want to share tiles across mapping programs?

sup 2012-08-07 18:28

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by woody14619 (Post 1248766)
I believe you can change where the maps are stored in the settings area. The default is the shared location for several apps (mappero and others). Why would you not want to share tiles across mapping programs?

Because of this. And since I opted for sqlite, it does not share maps anyway.


Well, I did not find it in the settings. Just option to use sqlite or not. Am I being blind? If so, could you be more specific where in the settings it is hidden.

rotoflex 2012-08-08 07:39

Re: [Announce] modRana: a flexible GPS navigation system
 
Storage location for the map tiles is defined in an editable configuration file.

I can't remember the name of the file or its location, but it's mentioned somewhere in this thread.

sup 2012-08-08 07:59

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by rotoflex (Post 1248999)
Storage location for the map tiles is defined in an editable configuration file.

I can't remember the name of the file or its location, but it's mentioned somewhere in this thread.

Ah, I see, it is in ~/.modrana/user_config.conf and the option is map_folder

Thanks!

MartinK 2012-08-09 10:10

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Ken-Young (Post 1243056)
I like your algorithm 4. You set a floor below which the threshold cannot fall, and have no discontinuity at the point where you start using HDOP information. If the HDOP is a one standard deviation radius, then 3 standard deviations is a good threshold.

OK then, looks like I'll implement number 3. :)

Quote:

Originally Posted by Ken-Young (Post 1243056)
It's nice that you're adding more parameters for us to tweak. One little advantage our poor orphaned OS has is that at this point it is likely that nearly all N900 owners are geeks. Somebody writing an Android app can't assume his users like to fiddle with the app's parameters, but we can.

Yeah, thats quite nice ! :) Still, good applications should be usable (in their default state) even for non-geeks but be configurable enough to satisfy advanced users.

Quote:

Originally Posted by shady (Post 1248760)
MartinK, were you able to find anything out using the file i sent?

Sorry, I haven't got to it yet - I was on vacation + was rewriting track logging + testing the new track logging & rerouting (while on vacation - both work just fine with 130 km/h+ on the Autobahn :) ). I'll check it out right away.

Quote:

Originally Posted by sup (Post 1249011)
Ah, I see, it is in ~/.modrana/user_config.conf and the option is map_folder

There are other useful options in this configuration file:
  • tracklog storage path
  • placement of map-screen buttons (per mode)
  • widget configuration (per mode)
user_config.conf
(It's quite heavily documented)

There is also another configuration file, used for configuring map layers:
map_config.conf

MartinK 2012-08-09 11:14

Re: [Announce] modRana: a flexible GPS navigation system
 
modRana V0.34.1 has been released !

Well, it was actually released yesterday. :)

Whats new ?
Code:

* more efficient and robust track logging
 * logging is incremental and does not slow down as the tracklog gets longer
 * logging to two separate temporary files for more robustness against software or device crash
 * modRana check for temporary tracklog files from last session on startup and exports them to GPX
* fix logging trace not displaying properly
 * drawing the logging trace should now be also more efficient
* the distict color selector now has captions in the target colors


cantruchd 2012-08-14 02:02

Re: [Announce] modRana: a flexible GPS navigation system
 
I encounter this error all the time:
Exception in thread Thread-22:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/opt/modrana/modules/mod_mapTiles.py", line 1042, in run
self.callback.storeInMemmory(tileDownloadFailedSur face,self.name,'semiPermanentError',expireTimestam p)
UnboundLocalError: local variable 'tileDownloadFailedSurface' referenced before assignment


It appear when the tile get downloaded and prepare to show, the screen just appear "loading..." and no map shown.

And regarding language routing, I am a native Vietnamese speaker, please tell me what I can to to make Modrana speaks Vietnameses :) as English voice cannot pronounce Vietnamese street names

MartinK 2012-08-18 22:03

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by Ken-Young (Post 1243056)
I like your algorithm 4. You set a floor below which the threshold cannot fall, and have no discontinuity at the point where you start using HDOP information. If the HDOP is a one standard deviation radius, then 3 standard deviations is a good threshold.

Oops, sorry, I meant number 4. :)

MartinK 2012-08-18 22:34

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by cantruchd (Post 1251530)
I encounter this error all the time:
Exception in thread Thread-22:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/opt/modrana/modules/mod_mapTiles.py", line 1042, in run
self.callback.storeInMemmory(tileDownloadFailedSur face,self.name,'semiPermanentError',expireTimestam p)
UnboundLocalError: local variable 'tileDownloadFailedSurface' referenced before assignment

It appear when the tile get downloaded and prepare to show, the screen just appear "loading..." and no map shown.

Thanks, I'll check it out. :)

Quote:

Originally Posted by cantruchd (Post 1251530)
And regarding language routing, I am a native Vietnamese speaker, please tell me what I can to to make Modrana speaks Vietnameses :) as English voice cannot pronounce Vietnamese street names

Looks like Google provides directions in Vietnamese and Espeak has (experimental) Vietnamese support. I'll add Vietnamese to the list of supported filters and it should appear in options->navigation->language->Language for directions once next modRana update is released. :)

BTW, any language supported by both Google & Espeak can be used in modRana. Any other requests ? :)

MartinK 2012-08-19 14:46

Re: [Announce] modRana: a flexible GPS navigation system
 
So I've released an update (V0.34.4, that has Vietnamese language support for directions (looks like it was actually already here, but a bug in paged item menu caused that it was not visible in the menu :) ) and directions filter improvements from Geoff Kuenning (who already helped to improve spoken directions last summer). Thanks Geoff ! :)

How to enable spoken direction in Vietnamese (or any other supported language) ?

Select the language in Options->Navigation->Language->Language for directions. :)

Please not that the distance announcements are not (yet) translated and are in English for all languages.

7thd 2012-08-21 21:05

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by 7thd (Post 1242573)
So I looked for options.bin as well, but it wasnīt there to be found.

I re-placed options.bin which solved my issue. The desired reload of configured options does take place again with this file present.
Switching between Modes goes fairly well, too.

cantruchd 2012-08-22 15:32

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by cantruchd (Post 1251530)
I encounter this error all the time:
Exception in thread Thread-22:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/opt/modrana/modules/mod_mapTiles.py", line 1042, in run
self.callback.storeInMemmory(tileDownloadFailedSur face,self.name,'semiPermanentError',expireTimestam p)
UnboundLocalError: local variable 'tileDownloadFailedSurface' referenced before assignment


It appear when the tile get downloaded and prepare to show, the screen just appear "loading..." and no map shown.

And regarding language routing, I am a native Vietnamese speaker, please tell me what I can to to make Modrana speaks Vietnameses :) as English voice cannot pronounce Vietnamese street names

@MartinK, I think I figured out the problem:

First, I accidentally use volume button to change volume,but instead I change the zoom level to around 56.

there is no map at this zoom level, so there was a http exception

you catched this exception,however, the variable are not assigned, that's what the error show.

So I fixed by change zoom level and also put line 1043 and 1044 before line 1042.

Hope this helps

MartinK 2012-08-27 15:13

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by cantruchd (Post 1254559)
@MartinK, I think I figured out the problem:

First, I accidentally use volume button to change volume,but instead I change the zoom level to around 56.

there is no map at this zoom level, so there was a http exception

you catched this exception,however, the variable are not assigned, that's what the error show.

So I fixed by change zoom level and also put line 1043 and 1044 before line 1042.

Hope this helps

Thanks ! Fixed in this commit. :)

MartinK 2012-09-04 18:36

Re: [Announce] modRana: a flexible GPS navigation system
 
modRana V0.34.5 has been released
Most importantly, this version fixes some issue that Saera uses had with the CLI initiated search queries (Saera currently uses modRana to handle searches for various kinds of food in the near vicinity). Other than that, search queries should be now more robust and generally a bit better to use.

I've also fixed a bug, that caused the cancel button of the search work-in-progress overlay to also trigger any other underlying buttons (like for example the centering toggle button).

Changelog:
Code:

* fix CLI search failing if the device is offline when the search is initiated
 * this should improve the food search in Saera
* wait for GPS fix & Internet connectivity to be established by searches that need it
* fix work-in-progress overlay "cancel" button also triggering buttons in the layer below


magic_doc 2012-09-07 09:36

Re: [Announce] modRana: a flexible GPS navigation system
 
4 Attachment(s)
Hi MartinK,

thanks for your continous work on this project!

First of all, modrana-qml is no longer workling for me, see attached text-file for the output when started in xterm.

Much more important for me is the display of tracks generated by the webiste http://www.gpsies.com.
I use these for planing bicycle-tours and follow the tracks to not get lost somewhere, recording it at the same time to improve OSMīs data when necessary.

When I create a track there and display it at modrana, it looks like this:
http://talk.maemo.org/attachment.php...1&d=1347009537
You can see a wrong straight line between some trackpoints. In this track there are only two, but I also had tracks with three or five of them making it hard to figure out what is the right way to go :mad:

In comparison to that, Mappero shows the track correctly:
http://talk.maemo.org/attachment.php...1&d=1347009730

I attached the zipped gpx-File, hope you can reproduce this issue.

CU Michael


All times are GMT. The time now is 10:09.

vBulletin® Version 3.8.8