public class LatitudeCrossingDetector extends AbstractDetector<LatitudeCrossingDetector>
该探测器标识出当飞船相对于中心天体穿越固定纬度时。
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Modifier | Constructor and Description |
---|---|
protected |
LatitudeCrossingDetector(AdaptableInterval maxCheck, double threshold, int maxIter, EventHandler handler, OneAxisEllipsoid body, double latitude)
全参数保护构造函数。
|
|
LatitudeCrossingDetector(double maxCheck, double threshold, OneAxisEllipsoid body, double latitude)
构建一个探测器。
|
|
LatitudeCrossingDetector(OneAxisEllipsoid body, double latitude)
构建一个新的探测器。
|
Modifier and Type | Method and Description |
---|---|
protected LatitudeCrossingDetector |
create(AdaptableInterval newMaxCheck, double newThreshold, int newMaxIter, EventHandler newHandler)
构建一个新实例。
|
double |
g(SpacecraftState s)
计算探测函数的值。
|
OneAxisEllipsoid |
getBody()
获取定义地理区域的天体。
|
double |
getLatitude()
获取要穿越的固定纬度(弧度)。
|
getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, withHandler, withMaxCheck, withMaxCheck, withMaxIter, withThreshold
public LatitudeCrossingDetector(OneAxisEllipsoid body, double latitude)
新实例使用最大检查间隔(AbstractDetector.DEFAULT_MAXCHECK
)和收敛阈值(AbstractDetector.DEFAULT_THRESHOLD
)的默认值。
body
- 定义纬度的天体
latitude
- 要穿越的纬度
public LatitudeCrossingDetector(double maxCheck, double threshold, OneAxisEllipsoid body, double latitude)
maxCheck
- 最大检查间隔(秒)
threshold
- 收敛阈值(秒)
body
- 定义纬度的天体
latitude
- 要穿越的纬度
protected LatitudeCrossingDetector(AdaptableInterval maxCheck, double threshold, int maxIter, EventHandler handler, OneAxisEllipsoid body, double latitude)
此构造函数不是公共的,因为用户应该使用建造者API和各种withXxx()
方法来设置实例,以便以可读的方式设置实例,而不使用大量参数。
maxCheck
- 最大检查间隔
threshold
- 收敛阈值(秒)
maxIter
- 事件时间搜索中的最大迭代次数
handler
- 事件处理程序,在事件发生时调用
body
- 定义纬度的天体
latitude
- 要穿越的纬度
protected LatitudeCrossingDetector create(AdaptableInterval newMaxCheck, double newThreshold, int newMaxIter, EventHandler newHandler)
create
在类 AbstractDetector<LatitudeCrossingDetector>
newMaxCheck
- 最大检查间隔(秒)
newThreshold
- 收敛阈值(秒)
newMaxIter
- 事件时间搜索中的最大迭代次数
newHandler
- 事件处理程序,在事件发生时调用
public OneAxisEllipsoid getBody()
public double getLatitude()
public double g(SpacecraftState s)
该值为飞船的纬度减去要穿越的固定纬度。如果飞船相对于固定纬度向北,则为正,如果向南则为负。
g
在接口 EventDetector
g
在类 AbstractDetector<LatitudeCrossingDetector>
s
- 当前状态信息:日期、运动学、姿态
Copyright © 2002-2023 CS GROUP. All rights reserved.