Thanks a lot, it helped a bit but there's other routines that doesn't match. What I can see right now is suggested start-daytime for predictions, output of predictions, current day-time in main display, countdown to next AOS in main display (also shows the same value for every sattellite), Next AOS/LOS in main display (the same value for every sattellite), Duration of visibility (all =0's), and maybe a few others. Obviously, there's going to be hard work to fix this, and I'm not sure I'm capable so if anyone has already done this or could help I'd REALLY appreciate it. Thanks /Bertil ----------------------------------------------------------------------- Note: These views may not reflect my employer's Bertil Stenstrom, Sema Group AB + email: stenis@sto.sema.se Box 34101, S-100 26 Stockholm, Sweden + Lat: +59, 22' 2,9604" Phone: +46 8 51 70 53 62 + Lon: +17, 57' 48,4812" Mobile: +46 708 51 53 62, Fax: +46 8 656 42 24 On Wed, 12 Jan 2000, Mike McCants wrote: > Hello Bertil, > > There is certainly one problem in the "readTle" routine. > > The code at line 380 of satelem.c says: > > epochYear = getElement(line1,19,20); > *pEpochDay = getElement(line1,21,32) + epochYear * 1000.0; > > Obviously the epochYear will be zero, so the first fix would be > to test against 57 and add 100 to the epoch year: > > epochYear = getElement(line1,19,20); > if (epochYear < 57) epochYear += 100; > *pEpochDay = getElement(line1,21,32) + epochYear * 1000.0; > > I'm not sure if this is your only problem. Can you make this change > and test the result? > > The code in "getdaynum" looks ok: > > long getDayNum(gdnD,gdnM,gdnY) > int gdnD, gdnM, gdnY; > { > long result; > if (gdnY < 50) /* allow 4 or 2 digit year specifications */ > gdnY += 2000; > else > if (gdnY < 100) > gdnY += 1900; > > (I do not actually run SatTrack, but I downloaded the V3.1 source > from the SEDS ftp site.) > > Wouldn't you like to run Quicksat? > > Mike McCants > ----------------------------------------------------------------- Unsubscribe from SeeSat-L by sending a message with 'unsubscribe' in the SUBJECT to SeeSat-L-request@lists.satellite.eu.org http://www2.satellite.eu.org/seesat/seesatindex.html
This archive was generated by hypermail 2b29 : Wed Jan 12 2000 - 23:04:53 PST