[Gpredict-svn] SF.net SVN: gpredict:[595] trunk
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2010-01-21 20:55:43
|
Revision: 595
http://gpredict.svn.sourceforge.net/gpredict/?rev=595&view=rev
Author: csete
Date: 2010-01-21 20:55:36 +0000 (Thu, 21 Jan 2010)
Log Message:
-----------
Applied new version of patch 2933879 from Charles Suprin AA1VS.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/predict-tools.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-01-17 22:06:27 UTC (rev 594)
+++ trunk/ChangeLog 2010-01-21 20:55:36 UTC (rev 595)
@@ -1,3 +1,9 @@
+2010-01-20 Alexandru Csete <oz9aec at gmail.com>
+
+ * src/predict-tools.c:
+ Applied new version of patch 2933879 from Charles Suprin AA1VS.
+
+
2010-01-17 Alexandru Csete <oz9aec at gmail.com>
* src/gtk-polar-view.c:
Modified: trunk/src/predict-tools.c
===================================================================
--- trunk/src/predict-tools.c 2010-01-17 22:06:27 UTC (rev 594)
+++ trunk/src/predict-tools.c 2010-01-21 20:55:36 UTC (rev 595)
@@ -745,6 +745,7 @@
void
free_pass (pass_t *pass)
{
+ if (pass!=NULL){
free_pass_details (pass->details);
if (pass->satname != NULL) {
@@ -754,6 +755,9 @@
g_free (pass);
pass = NULL;
+ } else {
+ /*FIXME: log an error?*/
+ }
}
@@ -1024,7 +1028,9 @@
predict_calc (sat, qth, t);
/* check whether satellite has aos */
- if (has_aos (sat, qth)) {
+ if ((sat->otype == ORBIT_TYPE_GEO) ||
+ (sat->otype == ORBIT_TYPE_DECAYED) ||
+ !has_aos (sat, qth)) {
return NULL;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|