[Date Prev][Date Next][Thread Prev][Thread Next] - [Date Index][Thread Index][Author Index]

SatTrack patch for ECHO



SatTrack (for LINUX and UNIX) doesn't like ECHO because it also matches 
ECHOSTAR-1, ECHOSTAR-2, etc.  The attached patch works around this problem.
It may not be the best fix, but it seems to work.  Presumably, ECHO will be
assigned a OSCAR number soon.
			      -- KD6PAG

-------------------------------------------------------------------------------
--- ./src/sattrack/satelem.c.orig	1997-01-04 13:08:09.000000000 -0800
+++ ./src/sattrack/satelem.c	2004-06-29 09:33:34.000000000 -0700
@@ -324,8 +324,14 @@
                 printf("\n%5ld:  %s\n",saveSatNum,saveStr);
 
             if (m >= 1)
+	    {
                 printf("%5ld:  %s\n",tleSatNum,tleStr);
-
+		if (strlen(tleStr)==strlen(satNameTle)) {
+		    tleIndex = i;
+		    m = 1;
+		    break;
+		}
+	    }
             m++;
         }
     }
===============================================================================
----
Sent via amsat-bb@amsat.org. Opinions expressed are those of the author.
Not an AMSAT member? Join now to support the amateur satellite program!
To unsubscribe, send "unsubscribe amsat-bb" to Majordomo@amsat.org



AMSAT Top AMSAT Home