![]() |
Re: [Announce] modRana: a flexible GPS navigation system
Really looking forward to location alarms! (Also, pilot here, would appreciate altitude alarms :) )
|
Re: [Announce] modRana: a flexible GPS navigation system
Sailor here,
Altitude is not a real (measurable) issue on the water. I'd suggest the idea to add content that portrays the angle to the next waypoint (either a visual or a measurement in degrees). This could open the way for efficient tacking (going upwind). BTW, I could imagine this would be too major an alteration. On the other hand, such a feature could come in handy for land driving as well btw. (i.e. for visualizing the general direction). Anyway, absolute distance to next waypoint, too, could be informative as well and/or alternatively (i.e. to mark the 90 degr. position to a buoy, although 90 degrees normally is 'late' for a tack). Cheers, modRana already is very cool. As said, maybe what I said is reasonably undoable, but I just wanted to describe from sailor's point of view. |
Re: [Announce] modRana: a flexible GPS navigation system
1 Attachment(s)
Quick message...
First, I have made it so that labels for POIs are not displayed if zoom level is smaller than 13: POIs are too close to each other, the labels become a useless mess, and besides, when the map is zoomed out enough, locations (continents, countries, et cetera) can be recognized without any labels at all. Though, '13' should be replaced with an option to be set through user interface. I am also creating an amusing kind of POI. If description of a POI matches 'airport', then, instead of the green translucent circle, an over-simplified image of airplane is drawn. And, an 'airport' doesn't have any label at all, no matter what zoom level: the number of airports is small enough than an airport doesn't need it. And, the bright blue dot is replaced with a changing-colour one: bright green if GPS isn't available, yellow if GPS gives large speed and large distance till the point, red if the speed is large and distance is small, green if the speed is small and distance is large, black if both speed and distance are small. Speed is compared to pedestrian's 5km/h, and distance is compared to one hour of travel at current speed. By the way, is it true that POIs are drawn even when they are outside the screen? It can make drawing work for cairo context about ten-twenty-forty times larger. I'm still wavering: to install CSSU or not... Thank you for ModRana. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Code:
lat;lon;elevation;distance;enabled;name;alert Quote:
Anyway, I thinks that such "sailing mode" mode might not be that difficult to add, once the general alarms are implemented. :) Quote:
Another possible, but more complicated future solution, would be to group nearby markers and just show a single marker with the label displaying the number of markers in the group. Clicking the label would show a list of the grouped marker or something similar. Quote:
It would be good to add and "icon" column to the database so that POIs can have both an icon and a full description, but this should work in the meantime. :) Quote:
Quote:
Therefore, just looking what points should be visible doesn't help as you still have to iterate over all the points and check if they are visible, would not help due to all the unnecessary comparisons and coordinate conversions. Of course, there is place for optimizations (the basic idea is to somehow reduce the number of points you have to work with at a time), the first one from the top of my head :
I'm sure there are also other ways how to optimize this. :) Quote:
Quote:
Anyway, thanks for the changes ! :) I'll check them out & integrate them to the upstream source code in the coming days. :) |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
If the conversion of geo coordinates into screen coordinates depends only on zoom, and not on current position/viewport, then screen coordinates could be permanently stored within POI, changed only when POI's geo coordinates are changed, and retrieved from here when POI is drawn, instead of being recalculated each time. |
Re: [Announce] modRana: a flexible GPS navigation system
3 Attachment(s)
Quick message...
Generally, I don't have Internet while on the move (or consider it expensive, or it is too slow). And, I generally don't want to depend on online services to help me with something which I could have done myself. Therefore, I have made a prototype offline routing: user gives one start, one end, and many middle points, and they are turned into a "route". Though, it could be developed by requiring text input for each middle point, so that the user would write the speeches for espeak - like, "turn left", "turn right", "bus stop", "train", and so on. I would be grateful if you could integrate this into one of the next versions. Thank you. Edit: obligatory text input for each middle point added. Though, I still haven't tested the system anywhere. Edit: Small edit ensures that turn-by-turn navigation interface does indeed work with handmade route. But I'm not sure whether the values of distance-meters are correct here. Edit: mod_route.turn.zip is the latest file. Two others couldn't support turn-by-turn navigation. Best wishes to all of you. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
So this is a vote for integration! |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
I've been working on CLI options for use by external program like (Saera) till now, so I'll check your changes next. :) Anyway, thanks in advance ! :D |
Re: [Announce] modRana: a flexible GPS navigation system
ModRana V0.32 has been release, with CLI interface imeprovements. Repost from the Saera thread:
ModRana now has quite a few new CLI options for use by Saera (and any other program or script): Code:
usage: modrana.py [-h] [-d device ID] [-u GUI ID] The search options work in two modes: If --return-static-map-url is used, modRana loads only the most essential modules, handles the query and exits after printing the Url pointing to a static-map with the result to stdout. If --return-static-map-url is not used, modRana starts normally and shows the search results. Exit codes If everything went fine, modRana returns 0, as expected. If something went wrong, modRana exits with one of the codes below: Code:
SYNTAX_ERROR = 2 When modRana does local search and no --local-search-location is specified, it starts the GPS and waits for up to 30 seconds for it to supply valid location coordinates. If the current location is not determined within the 30 second time limit, modRana uses the last known position (if available). Results If more results are returned for --return-static-map-url, modRana just returns Url for the first one (this is also usually the result with the best accuracy). It also shouldn't be difficult to add support for returning multiple results or to return coordinates or other information to stdout (maybe URL + result title ?). Other supported options It is also possible to set the zoom level, make modRana focus on a set of coordinates or center on current position. Routing There are not yet CLI options for routing, but will be added in near future. :) How to use Example - show address search result in GTK UI on zoom level 10: Code:
python /opt/modrana/modrana.py -d n900 -u GTK --address-search "Prague" --set-zl 10 Code:
python /opt/modrana/modrana.py --local-search "pizza" --return-static-map-url Don't hesitate to let me know if you hit any issues or if you have any ideas for improvements. :) |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
Thank you for looking into my supposed changes. :) |
All times are GMT. The time now is 05:04. |
vBulletin® Version 3.8.8