Skip to content

Commit

Permalink
Add option to set epoch to TCA
Browse files Browse the repository at this point in the history
Signed-off-by: Cees Bassa <[email protected]>
  • Loading branch information
cbassa committed Dec 28, 2024
1 parent eb60554 commit 8f799c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rffit.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "rftles.h"

#define LIM 80
#define NMAX 16384
#define NMAX 1024
#define D2R M_PI/180.0
#define R2D 180.0/M_PI
#define XKMPER 6378.137 // km
Expand Down Expand Up @@ -814,6 +814,12 @@ int main(int argc,char *argv[])
}
}

// Set TLE epoch to current TCA
if (c=='e') {
orb.ep_day=mjd2doy(mjdtca,&orb.ep_year);
redraw=1;
}

// Get TLE
if (c=='g') {
printf("Get TLE from catalog, provide satellite number: ");
Expand Down Expand Up @@ -1188,6 +1194,7 @@ int main(int argc,char *argv[])
printf("i Identify satellite from catalog based on Doppler curve\n");
printf("I Identify satellite from catalog based on visibility\n");
printf("M Mirror doppler curve in frequency\n");
printf("e Set TLE epoch to current TCA\n");
printf("\n");
printf("Highlighting / Selecting / Deleting points:\n");
printf("z Start box to zoom\n");
Expand Down

0 comments on commit 8f799c4

Please sign in to comment.