Skip to content

Commit

Permalink
Added updated TLE files, now compilable on Windows using mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
mitbailey committed Nov 23, 2021
1 parent e6ba28f commit d8715ba
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
14 changes: 14 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@ECHO OFF
REM Variables relevant to the compilation of the program.
SET CXX=g++
SET CPPOBJS=src/predict.cpp SGP4/libsgp4/CoordGeodetic.cc SGP4/libsgp4/CoordTopocentric.cc SGP4/libsgp4/DateTime.cc SGP4/libsgp4/DecayedException.cc SGP4/libsgp4/Eci.cc SGP4/libsgp4/Globals.cc SGP4/libsgp4/Observer.cc SGP4/libsgp4/OrbitalElements.cc SGP4/libsgp4/SatelliteException.cc SGP4/libsgp4/SGP4.cc SGP4/libsgp4/SolarPosition.cc SGP4/libsgp4/TimeSpan.cc SGP4/libsgp4/Tle.cc SGP4/libsgp4/TleException.cc SGP4/libsgp4/Util.cc SGP4/libsgp4/Vector.cc
SET EDCFLAGS=-std=gnu11 -O2
SET EDCXXFLAGS=-I ./ -I ./include/ -I ./SGP4/libsgp4/ -I ./SGP4/passpredict/ -I ./SGP4/sattrack/ -Wall
SET TARGET=predict.exe

REM This run a command-prompt command to compile using G++.
ECHO Compiling %CPPOBJS% into %TARGET% using %CXX% with %EDCXXFLAGS% flag(s)...
CMD /c "%CXX% %EDCXXFLAGS% %CPPOBJS% -o %TARGET%"

REM This will run the executable automatically.
@REM START %TARGET%
2 changes: 1 addition & 1 deletion src/predict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
// #include <termios.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
Expand Down
2 changes: 2 additions & 0 deletions sw.tle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 49277U 98067SW 21326.84226188 .00013751 00000-0 23989-3 0 9993
2 49277 51.6414 277.7701 0004151 278.2544 81.7974 15.50999260 6486
2 changes: 2 additions & 0 deletions sx.tle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 49278U 98067SX 21327.14207096 .00028261 00000-0 45588-3 0 9996
2 49278 51.6408 276.0233 0002491 263.8703 96.2003 15.52676200 6554

0 comments on commit d8715ba

Please sign in to comment.