24#include "AstCore/TimePoint.hpp"
25#include "AstCore/TLELines.hpp"
42enum class ESwitchMethod
58 TLE& operator=(
const TLE&) =
default;
60 TLE& operator=(
TLE&&) =
default;
71 bool enabled()
const {
return enabled_; }
72 void setEnabled(
bool v) { enabled_ = v; }
77 ESwitchMethod switchMethod()
const {
return switch_method_; }
78 void setSwitchMethod(ESwitchMethod v) { switch_method_ = v; }
80 const TimePoint& switchEpoch()
const {
return switchEpoch_; }
81 void setSwitchEpoch(
const TimePoint& v) { switchEpoch_ = v; }
83 const std::string& name()
const {
return name_;}
84 void setName(
StringView v) { name_ = std::string(v); }
86 const TimePoint& epochTime()
const {
return epochTime_; }
87 void setEpochTime(
const TimePoint& v) { epochTime_ = v; }
91 double meanMotionDot()
const {
return meanMotionDotTime_; }
92 void setMeanMotionDot(
double v) { meanMotionDotTime_ = v; }
94 double motionDotDot()
const {
return motionDotDot_; }
95 void setMotionDotDot(
double v) { motionDotDot_ = v; }
97 double bstar()
const {
return bstar_; }
98 void setBstar(
double v) { bstar_ = v; }
100 double inclination()
const {
return inclination_; }
101 void setInclination(
double v) { inclination_ = v; }
103 double rightAscenOfNode()
const {
return rightAscenOfNode_; }
104 void setRightAscenOfNode(
double v) { rightAscenOfNode_ = v; }
106 double eccentricity()
const {
return eccentricity_; }
107 void setEccentricity(
double v) { eccentricity_ = v; }
109 double argOfPerigee()
const {
return argOfPerigee_; }
110 void setArgOfPerigee(
double v) { argOfPerigee_ = v; }
112 double meanAnomaly()
const {
return meanAnomaly_; }
113 void setMeanAnomaly(
double v) { meanAnomaly_ = v; }
115 double meanMotion()
const {
return meanMotion_; }
116 void setMeanMotion(
double v) { meanMotion_ = v; }
118 int revNumber()
const {
return revNumber_; }
119 void setRevNumber(
int v) { revNumber_ = v; }
121 int ephType()
const {
return ephType_; }
122 void setEphType(
int v) { ephType_ = v; }
124 int noradId()
const {
return noradId_; }
125 void setNoradId(
int v) { noradId_ = v; }
128 std::string alpha5()
const;
131 const std::string& intlDesignation()
const {
return intlDesignation_; }
132 void setIntlDesignation(
StringView v) { intlDesignation_ = std::string(v); }
134 int elementNumber()
const {
return elementNumber_; }
135 void setElementNumber(
int v) { elementNumber_ = v; }
137 char classification()
const {
return classification_; }
138 void setClassification(
char v) { classification_ = v; }
147 ESwitchMethod switch_method_
148 {ESwitchMethod::eEpoch};
152 double meanMotionDotTime_{0.0};
153 double motionDotDot_{0.0};
155 double inclination_{0.0};
156 double rightAscenOfNode_{0.0};
157 double eccentricity_{0.0};
158 double argOfPerigee_{0.0};
159 double meanAnomaly_{0.0};
160 double meanMotion_{0.0};
163 int elementNumber_{0};
165 std::string intlDesignation_{};
166 char classification_{
'U'};
185AST_CORE_API errc_t
aTLEToString(
const TLE& tle, std::string& line1, std::string& line2);
修正轨道根数
定义 OrbitElement.hpp:154
经典轨道根数
定义 OrbitElement.hpp:111
TLE 原始行文本
定义 TLELines.hpp:41
绝对时间点
定义 TimePoint.hpp:109
int aParseNoradId(StringView str)
解析 5 位 NORAD 目录编号(支持 Alpha-5 字母扩展)
定义 TLE.cpp:212
int aTLEChecksum(StringView line)
计算一行 TLE 的模 10 校验和
定义 TLE.cpp:351
void aTLEToModOrbElem(const TLE &tle, double gm, ModOrbElem &elem)
将 TLE 转换为修改后的轨道根数
定义 TLE.cpp:532
errc_t aTLEToString(const TLE &tle, Span< char, 70 > line1, Span< char, 70 > line2)
将 TLE 格式化为两行文本(写入固定长度缓冲区)
定义 TLE.cpp:371
errc_t aFormatTLEEpoch(const TimePoint &time, std::string &out)
将时间格式化为 TLE 历元 YYDDD.DDDDDDDD(UTC)
定义 TLE.cpp:341
void aTLEToOrbElem(const TLE &tle, double gm, OrbElem &elem)
将 TLE 转换为经典轨道根数
定义 TLE.cpp:515