Updated OrbitalElements
parent
16bfbd99bd
commit
b39bef0611
|
|
@ -1,7 +1,7 @@
|
||||||
#include "OrbitalElements.h"
|
#include "OrbitalElements.h"
|
||||||
|
|
||||||
OrbitalElements::OrbitalElements(const Tle& tle) {
|
OrbitalElements::OrbitalElements(const Tle& tle)
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
* extract and format tle data
|
* extract and format tle data
|
||||||
*/
|
*/
|
||||||
|
|
@ -45,7 +45,3 @@ OrbitalElements::OrbitalElements(const Tle& tle) {
|
||||||
period_ = kTWOPI / RecoveredMeanMotion();
|
period_ = kTWOPI / RecoveredMeanMotion();
|
||||||
}
|
}
|
||||||
|
|
||||||
OrbitalElements::~OrbitalElements(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,92 +3,108 @@
|
||||||
|
|
||||||
#include "Tle.h"
|
#include "Tle.h"
|
||||||
|
|
||||||
class OrbitalElements {
|
class OrbitalElements
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
OrbitalElements(const Tle& tle);
|
OrbitalElements(const Tle& tle);
|
||||||
virtual ~OrbitalElements(void);
|
|
||||||
|
virtual ~OrbitalElements()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XMO
|
* XMO
|
||||||
*/
|
*/
|
||||||
double MeanAnomoly() const {
|
double MeanAnomoly() const
|
||||||
|
{
|
||||||
return mean_anomoly_;
|
return mean_anomoly_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XNODEO
|
* XNODEO
|
||||||
*/
|
*/
|
||||||
double AscendingNode() const {
|
double AscendingNode() const
|
||||||
|
{
|
||||||
return ascending_node_;
|
return ascending_node_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* OMEGAO
|
* OMEGAO
|
||||||
*/
|
*/
|
||||||
double ArgumentPerigee() const {
|
double ArgumentPerigee() const
|
||||||
|
{
|
||||||
return argument_perigee_;
|
return argument_perigee_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* EO
|
* EO
|
||||||
*/
|
*/
|
||||||
double Eccentricity() const {
|
double Eccentricity() const
|
||||||
|
{
|
||||||
return eccentricity_;
|
return eccentricity_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XINCL
|
* XINCL
|
||||||
*/
|
*/
|
||||||
double Inclination() const {
|
double Inclination() const
|
||||||
|
{
|
||||||
return inclination_;
|
return inclination_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XNO
|
* XNO
|
||||||
*/
|
*/
|
||||||
double MeanMotion() const {
|
double MeanMotion() const
|
||||||
|
{
|
||||||
return mean_motion_;
|
return mean_motion_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* BSTAR
|
* BSTAR
|
||||||
*/
|
*/
|
||||||
double BStar() const {
|
double BStar() const
|
||||||
|
{
|
||||||
return bstar_;
|
return bstar_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* AODP
|
* AODP
|
||||||
*/
|
*/
|
||||||
double RecoveredSemiMajorAxis() const {
|
double RecoveredSemiMajorAxis() const
|
||||||
|
{
|
||||||
return recovered_semi_major_axis_;
|
return recovered_semi_major_axis_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XNODP
|
* XNODP
|
||||||
*/
|
*/
|
||||||
double RecoveredMeanMotion() const {
|
double RecoveredMeanMotion() const
|
||||||
|
{
|
||||||
return recovered_mean_motion_;
|
return recovered_mean_motion_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PERIGE
|
* PERIGE
|
||||||
*/
|
*/
|
||||||
double Perigee() const {
|
double Perigee() const
|
||||||
|
{
|
||||||
return perigee_;
|
return perigee_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Period in minutes
|
* Period in minutes
|
||||||
*/
|
*/
|
||||||
double Period() const {
|
double Period() const
|
||||||
|
{
|
||||||
return period_;
|
return period_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* EPOCH
|
* EPOCH
|
||||||
*/
|
*/
|
||||||
Julian Epoch() const {
|
Julian Epoch() const
|
||||||
|
{
|
||||||
return epoch_;
|
return epoch_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue