Removed unused SatelliteOrbit.*
parent
4df7c7f850
commit
cb59b3414a
1
Makefile
1
Makefile
|
@ -10,7 +10,6 @@ SOURCES=CoordGeodetic.cpp \
|
|||
Julian.cpp \
|
||||
Observer.cpp \
|
||||
SGP4.cpp \
|
||||
SatelliteOrbit.cpp \
|
||||
Timespan.cpp \
|
||||
Tle.cpp \
|
||||
Vector.cpp
|
||||
|
|
|
@ -81,7 +81,6 @@
|
|||
<ClCompile Include="Julian.cpp" />
|
||||
<ClCompile Include="Observer.cpp" />
|
||||
<ClCompile Include="RunTest.cpp" />
|
||||
<ClCompile Include="SatelliteOrbit.cpp" />
|
||||
<ClCompile Include="SGP4.cpp" />
|
||||
<ClCompile Include="SolarPosition.cpp" />
|
||||
<ClCompile Include="Timespan.cpp" />
|
||||
|
@ -96,7 +95,6 @@
|
|||
<ClInclude Include="Julian.h" />
|
||||
<ClInclude Include="Observer.h" />
|
||||
<ClInclude Include="SatelliteException.h" />
|
||||
<ClInclude Include="SatelliteOrbit.h" />
|
||||
<ClInclude Include="SGP4.h" />
|
||||
<ClInclude Include="SolarPosition.h" />
|
||||
<ClInclude Include="Timespan.h" />
|
||||
|
|
|
@ -36,9 +36,6 @@
|
|||
<ClCompile Include="Timespan.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SatelliteOrbit.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="SGP4.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
|
@ -80,9 +77,6 @@
|
|||
<ClInclude Include="Timespan.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="SatelliteOrbit.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="SGP4.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
@ -1,50 +0,0 @@
|
|||
#include "SatelliteOrbit.h"
|
||||
|
||||
SatelliteOrbit::SatelliteOrbit(void) {
|
||||
}
|
||||
|
||||
SatelliteOrbit::~SatelliteOrbit(void) {
|
||||
}
|
||||
|
||||
void SatelliteOrbit::SetTle(const Tle& tle) {
|
||||
|
||||
sgp4_.SetTle(tle);
|
||||
}
|
||||
|
||||
bool SatelliteOrbit::IsGeostationary() {
|
||||
|
||||
if (sgp4_.MeanMotion() == 0.0)
|
||||
return true;
|
||||
|
||||
/*
|
||||
radius of apogee
|
||||
the distance from the centre of the planet to the point in the orbit furthest away from the planet
|
||||
*/
|
||||
const double apogee_altitude = sgp4_.RecoveredSemiMajorAxis() * (1.0 + sgp4_.Eccentricity()) - Globals::XKMPER();
|
||||
|
||||
/*
|
||||
* check if almost same speed as earth
|
||||
* or altitude is over 35000 km
|
||||
*/
|
||||
if (fabs(sgp4_.MeanMotion() - Globals::OMEGA_E()) < 0.0005 || apogee_altitude > 35000)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned int SatelliteOrbit::GetOrbitNumber(const Julian& jul) const {
|
||||
|
||||
double diff = jul.SpanMin(sgp4_.Epoch());
|
||||
|
||||
return static_cast<unsigned int> (floor((sgp4_.MeanMotion() * 1440.0 / Globals::TWOPI() +
|
||||
diff * sgp4_.BStar() * Globals::AE()) * diff +
|
||||
sgp4_.MeanAnomoly() / Globals::TWOPI())) + sgp4_.OrbitNumber() - 1;
|
||||
}
|
||||
|
||||
double SatelliteOrbit::Footprint(const double& altitude) {
|
||||
|
||||
if (altitude > 0)
|
||||
return 2.0 * Globals::XKMPER() * acos(Globals::XKMPER() / (Globals::XKMPER() + altitude));
|
||||
else
|
||||
return 0.0;
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
#ifndef SATELLITEORBIT_H_
|
||||
#define SATELLITEORBIT_H_
|
||||
|
||||
#include "Tle.h"
|
||||
#include "SGP4.h"
|
||||
|
||||
class SatelliteOrbit {
|
||||
public:
|
||||
SatelliteOrbit(void);
|
||||
virtual ~SatelliteOrbit(void);
|
||||
|
||||
void SetTle(const Tle& tle);
|
||||
|
||||
bool IsGeostationary();
|
||||
|
||||
unsigned int GetOrbitNumber(const Julian& jul) const;
|
||||
|
||||
static double Footprint(const double& altitude);
|
||||
|
||||
private:
|
||||
SGP4 sgp4_;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue