]>
git.itanic.dy.fi Git - maemo-mapper/log
Timo Kokkonen [Sat, 27 Feb 2010 20:38:49 +0000 (22:38 +0200)]
sat_panel_expose: Use less digits when fix precision is bad
When the reported horizontal fix inaccuracy exceeds 1000m, show the
value using kilometers instead of meters. This will also help the
number to fit better in the limited space.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Sat, 20 Feb 2010 14:23:35 +0000 (16:23 +0200)]
Map controller: Disable auto rotation when auto center is disabled
If auto rotation is enabled while auto center is disabled, browsing
the map is really disturbing due to constantly rotating map. This
patch will disable auto rotation whenever auto center is disable as
well.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Timo Kokkonen [Sat, 20 Feb 2010 13:14:52 +0000 (15:14 +0200)]
gps.c: Fix elevation in satellite details
It appears that liblocation is providing the satellite elevation data
in such format that the division by 100 is no longer required.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
Alberto Mardegan [Thu, 20 May 2010 19:03:56 +0000 (22:03 +0300)]
Fix suggestion of filename on saving
I don't know what bug the comment was referring to, but anyway it seems that
now the name is correct without that hack (and better, because spaces are no
longer converted to "%20").
Alberto Mardegan [Thu, 20 May 2010 18:52:09 +0000 (21:52 +0300)]
Make sure we break the track when the GPS goes off.
Alberto Mardegan [Thu, 20 May 2010 13:30:29 +0000 (16:30 +0300)]
Complete name transition to Mappero
Alberto Mardegan [Tue, 18 May 2010 20:34:18 +0000 (23:34 +0300)]
Workaround the crazy GPS
Sometimes, even when we don't get a fix and the coordinates are just based on
the country ID, the hdop is set to 0. Let's set it to a slightly bigger value,
instead. :-)
Alberto Mardegan [Thu, 13 May 2010 08:12:56 +0000 (11:12 +0300)]
Version 3.0+beta6
Alberto Mardegan [Thu, 13 May 2010 07:31:04 +0000 (10:31 +0300)]
Mappero!
Alberto Mardegan [Sat, 8 May 2010 14:09:52 +0000 (17:09 +0300)]
Make OSM the default repository
Alberto Mardegan [Sat, 1 May 2010 08:29:18 +0000 (11:29 +0300)]
Don't allow zooming outside of the supported range
Bug #5650
Alberto Mardegan [Sat, 1 May 2010 08:02:45 +0000 (11:02 +0300)]
Sanitize the zoom value on startup.
Alberto Mardegan [Fri, 30 Apr 2010 18:55:25 +0000 (21:55 +0300)]
Don't set the end of route as default starting point
Hving the starting point set to the end of the route is confusing some users;
and probably starting from the GPS position is the most commonly needed option.
Alberto Mardegan [Fri, 30 Apr 2010 18:47:51 +0000 (21:47 +0300)]
Route menu: hide the Save button when no route is set
Alberto Mardegan [Fri, 30 Apr 2010 18:46:57 +0000 (21:46 +0300)]
Rename the "Download route" items
The new labels sould be more understandable
Alberto Mardegan [Thu, 29 Apr 2010 19:43:22 +0000 (22:43 +0300)]
Factor out map_route_take_path()
Alberto Mardegan [Wed, 28 Apr 2010 14:46:12 +0000 (17:46 +0300)]
Get GPS data from gps variable.
Alberto Mardegan [Wed, 28 Apr 2010 14:42:20 +0000 (17:42 +0300)]
Don't move the map if error is way too big
If the error (uncertainty) is bigger than 5km and the current map center is
within that range, do not scroll the map.
This should fix the case where the GPS position is obtained just from the
operator country, provided that the claimed error is correct.
Alberto Mardegan [Sun, 18 Apr 2010 17:46:34 +0000 (20:46 +0300)]
Create the GPS widget only when necessary
Alberto Mardegan [Sun, 18 Apr 2010 17:22:13 +0000 (20:22 +0300)]
Remove some unused code
Alberto Mardegan [Sun, 18 Apr 2010 17:08:49 +0000 (20:08 +0300)]
Statically initialize the degree format structure
Alberto Mardegan [Sun, 18 Apr 2010 12:08:15 +0000 (15:08 +0300)]
Controller: download tile pre-cache when moving
Alberto Mardegan [Sun, 18 Apr 2010 12:07:20 +0000 (15:07 +0300)]
Screen: remove wrong precache code
We don't want to create textures for offscreen tiles, but just download them.
Alberto Mardegan [Sun, 18 Apr 2010 12:06:36 +0000 (15:06 +0300)]
Maps: add map_download_precache()
Download tiles around the screen area.
Alberto Mardegan [Sun, 18 Apr 2010 10:12:17 +0000 (13:12 +0300)]
Disable power save by default
It can be annoying if it causes the loss of the GPS position (or triggers the
connectivity dialog).
Alberto Mardegan [Sun, 18 Apr 2010 10:11:13 +0000 (13:11 +0300)]
Screen: do not need unnecessary tiles
The number of tiles to be downloaded was not correctly calculated.
Alberto Mardegan [Sun, 18 Apr 2010 10:10:09 +0000 (13:10 +0300)]
Fix auto-download-precache option
Alberto Mardegan [Sun, 18 Apr 2010 09:44:46 +0000 (12:44 +0300)]
Rework auto-center
Don't disable auto-center when panning the map; instead, let the user pan the
map indisturbed, and reset the map center to the correct position 5 seconds
after the user has finished panning.
Alberto Mardegan [Sat, 17 Apr 2010 08:03:37 +0000 (11:03 +0300)]
Delay loading of paths
Perform most of the path initialization and loading in the
maemo_mapper_init_late() function. This makes the application startup look
faster.
Alberto Mardegan [Wed, 14 Apr 2010 20:08:00 +0000 (23:08 +0300)]
Remove variables for non-working GPS receiver support
We are only use GPS via the location framework.
Alberto Mardegan [Wed, 14 Apr 2010 19:56:52 +0000 (22:56 +0300)]
Remove support for all hardware keys
Alberto Mardegan [Wed, 14 Apr 2010 17:52:35 +0000 (20:52 +0300)]
Avoid drawing to the screen while the display is off
This should help in saving some battery power.
Alberto Mardegan [Wed, 14 Apr 2010 15:36:30 +0000 (18:36 +0300)]
Don't add track breaks when GPS is changing polling interval.
Alberto Mardegan [Wed, 14 Apr 2010 15:09:52 +0000 (18:09 +0300)]
Preload Mapper GConf settings
This reduces startup time by about 300ms.
Before the change (all times are in milliseconds) the timings for
map_controller_init() were:
Total: 870
Thread: 440
And now:
Total: 580
Thread: 320
Alberto Mardegan [Wed, 14 Apr 2010 15:09:08 +0000 (18:09 +0300)]
Profile map_controller_init
Alberto Mardegan [Wed, 14 Apr 2010 15:08:08 +0000 (18:08 +0300)]
Add macros for profiling
Alberto Mardegan [Wed, 14 Apr 2010 14:23:02 +0000 (17:23 +0300)]
Completely remove DEBUG() overhead when debugging is off
Alberto Mardegan [Wed, 14 Apr 2010 14:05:23 +0000 (17:05 +0300)]
Do not start GPS before loading the settings
Alberto Mardegan [Wed, 14 Apr 2010 13:59:56 +0000 (16:59 +0300)]
Save GPS options
Alberto Mardegan [Tue, 13 Apr 2010 20:02:07 +0000 (23:02 +0300)]
Add dialog for GPS settings
Alberto Mardegan [Tue, 13 Apr 2010 18:54:41 +0000 (21:54 +0300)]
GPS: methods for adjusting polling interval
User interface for this settings will come soon.
Alberto Mardegan [Tue, 13 Apr 2010 18:49:17 +0000 (21:49 +0300)]
Monitor display status
Move some actions that were previously depending on the device activity to
depend on the device display status.
Alberto Mardegan [Tue, 13 Apr 2010 16:50:38 +0000 (19:50 +0300)]
Add maemo_mapper_init_late()
This is going to be used for non urgent initializations.
Alberto Mardegan [Tue, 13 Apr 2010 15:27:56 +0000 (18:27 +0300)]
Add map_controller_gps_set_interval()
Unfortunately this requires resetting the GPS control, see
https://bugs.maemo.org/show_bug.cgi?id=9914
Alberto Mardegan [Mon, 12 Apr 2010 19:31:54 +0000 (22:31 +0300)]
Move repository_tile_sources_expired() to repository.c
Alberto Mardegan [Mon, 12 Apr 2010 19:30:07 +0000 (22:30 +0300)]
Dynamic layers: don't install timer is all layers are static
Add new function repository_tile_sources_can_expire()
Alberto Mardegan [Mon, 12 Apr 2010 19:19:33 +0000 (22:19 +0300)]
Change signature of reset_tile_sources_countdown()
And use direct access to the private structure.
Alberto Mardegan [Mon, 12 Apr 2010 19:12:55 +0000 (22:12 +0300)]
Dynamic layers: check only enabled tile sources
Besides refactoring the code a bit, this patch restricts the tile sources
checked for expiration to those enabled on the active repository.
Alberto Mardegan [Wed, 21 Apr 2010 13:39:53 +0000 (16:39 +0300)]
Version 3.0+beta5
Alberto Mardegan [Sat, 10 Apr 2010 16:28:55 +0000 (19:28 +0300)]
Add navigation sound files
Alberto Mardegan [Sat, 10 Apr 2010 16:00:23 +0000 (19:00 +0300)]
Path: add "direction" column to DB
Handle DB versions.
Alberto Mardegan [Sat, 10 Apr 2010 15:59:58 +0000 (18:59 +0300)]
Path: don't crash if DB cannot be opened
Alberto Mardegan [Sat, 10 Apr 2010 15:24:03 +0000 (18:24 +0300)]
SQUASH (case)
Alberto Mardegan [Sat, 10 Apr 2010 15:06:26 +0000 (18:06 +0300)]
Refactor opening of Path database
Alberto Mardegan [Sat, 10 Apr 2010 14:20:11 +0000 (17:20 +0300)]
Navigation: update distance on sign
Alberto Mardegan [Sat, 10 Apr 2010 13:44:05 +0000 (16:44 +0300)]
Allow formatting of distances in smaller units (metres, yards)
Alberto Mardegan [Sat, 10 Apr 2010 12:52:54 +0000 (15:52 +0300)]
Add very nice icons for navigation
Alberto Mardegan [Sat, 10 Apr 2010 12:31:13 +0000 (15:31 +0300)]
Navigation: replace hildon banners with MapSign
Alberto Mardegan [Sat, 10 Apr 2010 12:30:43 +0000 (15:30 +0300)]
Add map_screen_{show,hide}_sign
Alberto Mardegan [Sat, 10 Apr 2010 12:28:40 +0000 (15:28 +0300)]
Add MapSign
This class handles the visual notifications when routing.
Alberto Mardegan [Sat, 10 Apr 2010 12:29:39 +0000 (15:29 +0300)]
Add map_direction_get_name()
It is going to be used for visual notification, too.
Alberto Mardegan [Sat, 10 Apr 2010 12:27:34 +0000 (15:27 +0300)]
Remove unused code
Alberto Mardegan [Fri, 9 Apr 2010 20:25:46 +0000 (23:25 +0300)]
Navigation: fix recognition of exits
Alberto Mardegan [Fri, 9 Apr 2010 19:54:57 +0000 (22:54 +0300)]
Navigation: correct string comparison
Should count better :-)
Alberto Mardegan [Fri, 9 Apr 2010 19:16:03 +0000 (22:16 +0300)]
Play navigation voice via gstreamer, speex compressed
Alberto Mardegan [Tue, 6 Apr 2010 15:16:00 +0000 (18:16 +0300)]
Make map_path_update_near_info() simpler
Instead of computing the closest point in the route, always compute the next
one.
The previous code was not behaving well with routes having twists or non
contiguous points very near to each other.
Alberto Mardegan [Mon, 5 Apr 2010 15:03:07 +0000 (18:03 +0300)]
Route: handle passing over the last waypoint.
Not checking for this was leading to a crash (passing a NULL waypoint to
map_navigation_set_alert()).
Alberto Mardegan [Mon, 5 Apr 2010 10:20:12 +0000 (13:20 +0300)]
Rewrite the announce distance in a more readable form.
Alberto Mardegan [Mon, 5 Apr 2010 10:01:19 +0000 (13:01 +0300)]
Rename variable.
Alberto Mardegan [Mon, 5 Apr 2010 10:00:09 +0000 (13:00 +0300)]
Possibly uninitialized variable
Alberto Mardegan [Mon, 5 Apr 2010 09:58:57 +0000 (12:58 +0300)]
Route: new calculation of waypoint distance alert
Alberto Mardegan [Mon, 5 Apr 2010 09:47:36 +0000 (12:47 +0300)]
Move user notification code to navigation.c
Alberto Mardegan [Mon, 5 Apr 2010 08:49:39 +0000 (11:49 +0300)]
Route: refresh paths when near points info is changed
Alberto Mardegan [Mon, 5 Apr 2010 08:42:36 +0000 (11:42 +0300)]
Calculate routing when manually setting GPS position
This proves quite useful for debugging the routing algorithms.
Correctly initialize fields in GpsData.
Alberto Mardegan [Mon, 5 Apr 2010 08:34:50 +0000 (11:34 +0300)]
Add map_route_get_distance_to_next_waypoint() and use it.
Alberto Mardegan [Mon, 5 Apr 2010 08:26:25 +0000 (11:26 +0300)]
Improve efficiency of route_calc_distance_to()
Cache the distance to the closest point.
Alberto Mardegan [Mon, 5 Apr 2010 08:15:56 +0000 (11:15 +0300)]
Path: Avoid iterating the first point twice
Alberto Mardegan [Mon, 5 Apr 2010 08:08:10 +0000 (11:08 +0300)]
map_path_merge(): Don't add breaks to merged paths
This patch removes the first line marker on the appended path, to avoid adding
empty lines.
So the behaviour is:
a) If the first path ends with a break, the two paths will appear as separate
b) If the first path doesn't end with a break, the two paths will appear as one
Also, initialize the path after unsetting it (in the rare case where a NULL
path is substituted).
Alberto Mardegan [Sun, 4 Apr 2010 16:30:33 +0000 (19:30 +0300)]
Bugfix: waypoint descriptions were not saved.
The wcurr pointer was never initialized.
Alberto Mardegan [Sun, 4 Apr 2010 15:20:39 +0000 (18:20 +0300)]
Path: handle empty paths correctly when updating near points
Alberto Mardegan [Sun, 4 Apr 2010 15:11:32 +0000 (18:11 +0300)]
Colour the next waypoint differently
Alberto Mardegan [Sun, 4 Apr 2010 14:47:31 +0000 (17:47 +0300)]
Load GPS position in units, too
This makes the calculation on the initial waypoint correct.
Alberto Mardegan [Sun, 4 Apr 2010 14:32:22 +0000 (17:32 +0300)]
Path: fix an out-of-bound error.
The path->_tail represents the end of the path, not the last valid Point.
Alberto Mardegan [Sun, 4 Apr 2010 14:06:34 +0000 (17:06 +0300)]
Remove path_get_next_way()
Alberto Mardegan [Sun, 4 Apr 2010 14:01:33 +0000 (17:01 +0300)]
Replace map_controller_get_next_waypoint with map_route_...
Also, remove the now useless map_controller_set_next_waypoint.
Alberto Mardegan [Sun, 4 Apr 2010 13:33:12 +0000 (16:33 +0300)]
Add index of the first_unsaved element to the Path
Alberto Mardegan [Sun, 4 Apr 2010 13:06:23 +0000 (16:06 +0300)]
Add map_route_exists() and use it.
Alberto Mardegan [Sun, 4 Apr 2010 13:01:01 +0000 (16:01 +0300)]
Add route.c and move all route related code there
Just minimal changes to make the project build. Improvements coming soon.
Alberto Mardegan [Sun, 4 Apr 2010 12:57:25 +0000 (15:57 +0300)]
Fix mismatch route/track
Alberto Mardegan [Sun, 4 Apr 2010 10:17:16 +0000 (13:17 +0300)]
Rewrite calculation of next waypoint
This is only the first patch of a series of commits aiming to refactor the way
waypoint alerts are emitted.
Alberto Mardegan [Sun, 4 Apr 2010 10:14:30 +0000 (13:14 +0300)]
Add "const" specifier to map_navigation_announce_voice()
Alberto Mardegan [Sat, 3 Apr 2010 16:54:01 +0000 (19:54 +0300)]
Navigation: play direction sounds
Alberto Mardegan [Sat, 3 Apr 2010 10:54:01 +0000 (13:54 +0300)]
Rewrite the check on duplicate announcements
Compare the waypoint, not the description (which might be just "Turn right" for
two consecutive waypoints, but you surely want to hear it again).
Allow repeating waypoint announcements after a certain timeout.
Alberto Mardegan [Sat, 3 Apr 2010 10:41:19 +0000 (13:41 +0300)]
Move voice announcement code to navigation.c
Alberto Mardegan [Sat, 3 Apr 2010 10:25:36 +0000 (13:25 +0300)]
Add MapNavigation; infer direction from waypoint description
Alberto Mardegan [Sat, 3 Apr 2010 09:16:32 +0000 (12:16 +0300)]
Prepare for navigation support in GPX files
This changes does nothing in practice, but allowing following improvements on
GPX parsing.
Alberto Mardegan [Sat, 3 Apr 2010 09:15:07 +0000 (12:15 +0300)]
Navigation: add MapDirection into waypoints
Introduce the MapDirection enum, which can then be rendered into simple images
or audio notifications.
Alberto Mardegan [Sat, 3 Apr 2010 16:53:31 +0000 (19:53 +0300)]
Remove some useless code
Alberto Mardegan [Sat, 3 Apr 2010 16:49:35 +0000 (19:49 +0300)]
Don't store the same points more than once (fix crash)
The "start" variable when saving paths to DB was not correctly initialized in
some cases. This could lead to an assertion failure.
This patch also renames some variables for clarity and restricts the scope of
the DB track index to path.c
Alberto Mardegan [Sat, 3 Apr 2010 07:26:21 +0000 (10:26 +0300)]
Change auto-download default value to TRUE.