Thread: [Gpredict-svn] SF.net SVN: gpredict:[599] trunk/src/gtk-sat-map-ground-track.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2010-02-01 16:10:12
|
Revision: 599 http://gpredict.svn.sourceforge.net/gpredict/?rev=599&view=rev Author: csete Date: 2010-02-01 16:10:05 +0000 (Mon, 01 Feb 2010) Log Message: ----------- Applied patch 2942658: Ground Tracks with Narrow Windows (Thanks to Charles Suprin AA1VS). Modified Paths: -------------- trunk/src/gtk-sat-map-ground-track.c Modified: trunk/src/gtk-sat-map-ground-track.c =================================================================== --- trunk/src/gtk-sat-map-ground-track.c 2010-02-01 15:40:19 UTC (rev 598) +++ trunk/src/gtk-sat-map-ground-track.c 2010-02-01 16:10:05 UTC (rev 599) @@ -285,7 +285,7 @@ create_polylines (GtkSatMap *satmap, sat_t *sat, qth_t *qth, sat_map_obj_t *obj) { ssp_t *ssp,*buff; /* map coordinates */ - double lastx; + double lastx,lasty; GSList *points = NULL; GooCanvasItemModel *root; GooCanvasItemModel *line; @@ -297,6 +297,7 @@ /* initialise parameters */ lastx = -50.0; + lasty = -50.0; start = 0; num_points = 0; n = g_slist_length (obj->track_data.latlon); @@ -316,6 +317,7 @@ if (i == start) { points = g_slist_prepend (points, ssp); lastx = ssp->lon; + lasty = ssp->lat; } else { @@ -361,20 +363,23 @@ points = NULL; start = i; lastx = ssp->lon; + lasty = ssp->lat; num_points = 0; /* Add current SSP to the new list */ points = g_slist_prepend (points, ssp); lastx = ssp->lon; + lasty = ssp->lat; } /* else if this SSP is separable from the previous */ - else if (fabs (lastx - ssp->lon) > 1.0 ) { + else if ((fabs (lastx - ssp->lon) > 1.0 ) || (fabs(lasty - ssp->lat)>1.0)){ /* add SSP to list */ points = g_slist_prepend (points, ssp); lastx = ssp->lon; + lasty = ssp->lon; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aa...@us...> - 2011-07-14 03:48:36
|
Revision: 856 http://gpredict.svn.sourceforge.net/gpredict/?rev=856&view=rev Author: aa1vs Date: 2011-07-14 03:48:30 +0000 (Thu, 14 Jul 2011) Log Message: ----------- Clean pendantic compiler warning. Modified Paths: -------------- trunk/src/gtk-sat-map-ground-track.c Modified: trunk/src/gtk-sat-map-ground-track.c =================================================================== --- trunk/src/gtk-sat-map-ground-track.c 2011-07-14 03:45:49 UTC (rev 855) +++ trunk/src/gtk-sat-map-ground-track.c 2011-07-14 03:48:30 UTC (rev 856) @@ -213,11 +213,14 @@ void ground_track_delete (GtkSatMap *satmap, sat_t *sat, qth_t *qth, sat_map_obj_t *obj, gboolean clear_ssp) { - guint i,j,n; + guint i,n; + gint j; GooCanvasItemModel *line; GooCanvasItemModel *root; - sat_log_log (SAT_LOG_LEVEL_DEBUG, + (void) qth; /* avoid unusued parameter compiler warning */ + + sat_log_log (SAT_LOG_LEVEL_DEBUG, _("%s: Deleting ground track for %s"), __FUNCTION__, sat->nickname); @@ -276,7 +279,8 @@ static void free_ssp (gpointer ssp, gpointer data) { - g_free (ssp); + (void) data; /* prevent unused parameter compiler warning */ + g_free (ssp); } @@ -294,6 +298,8 @@ guint i,j,n,num_points; guint32 col; + (void) sat; /* prevent unused parameter compiler warning */ + (void) qth; /* prevent unused parameter compiler warning */ /* initialise parameters */ lastx = -50.0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aa...@us...> - 2011-10-08 20:08:46
|
Revision: 920 http://gpredict.svn.sourceforge.net/gpredict/?rev=920&view=rev Author: aa1vs Date: 2011-10-08 20:08:40 +0000 (Sat, 08 Oct 2011) Log Message: ----------- Use more robust check on orbit change time. Modified Paths: -------------- trunk/src/gtk-sat-map-ground-track.c Modified: trunk/src/gtk-sat-map-ground-track.c =================================================================== --- trunk/src/gtk-sat-map-ground-track.c 2011-10-08 02:04:58 UTC (rev 919) +++ trunk/src/gtk-sat-map-ground-track.c 2011-10-08 20:08:40 UTC (rev 920) @@ -109,7 +109,8 @@ more than 12 hours back in time. */ t0 = satmap->tstamp;//get_current_daynum (); - for (t = t0; (sat->orbit >= this_orbit) && ((t+0.5) > t0); t -= 0.0007) { + /* use == instead of >= as it is more robust */ + for (t = t0; (sat->orbit == this_orbit) && ((t+0.5) > t0); t -= 0.0007) { predict_calc (sat, qth, t); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aa...@us...> - 2011-10-08 20:19:49
|
Revision: 921 http://gpredict.svn.sourceforge.net/gpredict/?rev=921&view=rev Author: aa1vs Date: 2011-10-08 20:19:43 +0000 (Sat, 08 Oct 2011) Log Message: ----------- Reset satellite after computing ground track. Modified Paths: -------------- trunk/src/gtk-sat-map-ground-track.c Modified: trunk/src/gtk-sat-map-ground-track.c =================================================================== --- trunk/src/gtk-sat-map-ground-track.c 2011-10-08 20:08:40 UTC (rev 920) +++ trunk/src/gtk-sat-map-ground-track.c 2011-10-08 20:19:43 UTC (rev 921) @@ -153,6 +153,10 @@ } + /* Reset satellite structure to eliminate glitches in single sat view and other places + when new ground track is layed out */ + predict_calc(sat, qth, satmap->tstamp); + /* reverse GSList */ obj->track_data.latlon = g_slist_reverse (obj->track_data.latlon); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aa...@us...> - 2011-10-23 12:25:19
|
Revision: 933 http://gpredict.svn.sourceforge.net/gpredict/?rev=933&view=rev Author: aa1vs Date: 2011-10-23 12:25:13 +0000 (Sun, 23 Oct 2011) Log Message: ----------- Fix typo. Modified Paths: -------------- trunk/src/gtk-sat-map-ground-track.c Modified: trunk/src/gtk-sat-map-ground-track.c =================================================================== --- trunk/src/gtk-sat-map-ground-track.c 2011-10-23 11:39:07 UTC (rev 932) +++ trunk/src/gtk-sat-map-ground-track.c 2011-10-23 12:25:13 UTC (rev 933) @@ -118,7 +118,7 @@ /* set it so that we are in the same orbit as this_orbit and not a different one */ - t += 0.0007; + t += 2*0.0007; t0 = t; predict_calc (sat, qth, t0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |