🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
LandingSite.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstCore/Segment.hpp"
25#include "AstCore/GeodeticPoint.hpp"
26#include "AstCore/CelestialBody.hpp"
27
28AST_NAMESPACE_BEGIN
29
35class AST_CORE_API LandingSite: public Segment
36{
37public:
38 AST_OBJECT(LandingSite)
39
40 LandingSite() = default;
41 ~LandingSite() override = default;
42public:
43 errc_t execute() override;
44
45public: /* 配置属性 */
47 Body* body() const { return body_.get(); }
49 void setBody(Body* body) { body_ = body; }
50
52 const GeodeticPoint& position() const { return position_; }
54 void setPosition(const GeodeticPoint& pos) { position_ = pos; }
55
57 const TimePoint& epoch() const { return epoch_; }
59 void setEpoch(const TimePoint& epoch) { epoch_ = epoch; }
60private:
61 TimePoint epoch_{};
62 WeakPtr<Body> body_;
63 GeodeticPoint position_{};
64};
65
66
69AST_NAMESPACE_END
70
天体
定义 CelestialBody.hpp:72
大地坐标
定义 GeodeticPoint.hpp:33
定义 LandingSite.hpp:36
Body * body() const
获取着陆天体
定义 LandingSite.hpp:47
void setPosition(const GeodeticPoint &pos)
设置着陆点位置
定义 LandingSite.hpp:54
const TimePoint & epoch() const
获取着陆时间
定义 LandingSite.hpp:57
void setBody(Body *body)
设置着陆天体
定义 LandingSite.hpp:49
void setEpoch(const TimePoint &epoch)
设置着陆时间
定义 LandingSite.hpp:59
const GeodeticPoint & position() const
获取着陆点位置
定义 LandingSite.hpp:52
轨道段(虚基类),用于描述任务序列中的轨道段,例如初始状态段、轨道机动段、轨道预报段等
定义 Segment.hpp:45
virtual errc_t execute() override=0
执行任务
绝对时间点
定义 TimePoint.hpp:107