🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
DetectorEpoch.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "EventDetector.hpp"
25#include "AstCore/TimePoint.hpp"
26
27AST_NAMESPACE_BEGIN
28
29class AST_CORE_API DetectorEpoch final: public EventDetector
30{
31public:
32 AST_OBJECT(DetectorEpoch)
33 DetectorEpoch() = default;
34 double getValue(const SpacecraftState& state, double t) const override;
35 double getDifference(const SpacecraftState& state, double t) const override;
36public:
37 void setGoal(const TimePoint& time);
38 const TimePoint& goal() const{return goal_;}
39private:
40 TimePoint goal_;
41};
42
43AST_NAMESPACE_END
定义 DetectorEpoch.hpp:30
事件检测基类 事件检测基类,用于检测事件是否发生。 参考orekit的EventDetector类
定义 EventDetector.hpp:39
virtual double getValue(const SpacecraftState &state, double t) const =0
获取事件检测开关函数的值
virtual double getDifference(const SpacecraftState &state, double t) const
获取事件检测开关函数与目标值的差值
定义 EventDetector.hpp:54
航天器状态,包含轨道状态、航天器参数(质量、面积、阻力系数、光压、密度、压力、温度等)
定义 SpacecraftState.hpp:39
绝对时间点
定义 TimePoint.hpp:107