[Gpredict-svn] SF.net SVN: gpredict:[920] trunk/src/gtk-sat-map-ground-track.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
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. |