Serializable
, EventDetector
public class PositionAngleDetector extends AbstractDetector<PositionAngleDetector>
The detector is based on anomaly for Keplerian
orbits, latitude argument for circular
orbits,
or longitude argument for equinoctial
orbits.
It does not support Cartesian
orbits. The
angles can be either true
, {link mean
or eccentric
angles.
DEFAULT_MAX_ITER, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD
Constructor | Description |
---|---|
PositionAngleDetector(double maxCheck,
double threshold,
OrbitType orbitType,
PositionAngle positionAngle,
double angle) |
Build a detector.
|
PositionAngleDetector(OrbitType orbitType,
PositionAngle positionAngle,
double angle) |
Build a new detector.
|
Modifier and Type | Method | Description |
---|---|---|
protected PositionAngleDetector |
create(double newMaxCheck,
double newThreshold,
int newMaxIter,
EventHandler<? super PositionAngleDetector> newHandler) |
Build a new instance.
|
double |
g(SpacecraftState s) |
Compute the value of the detection function.
|
double |
getAngle() |
Get the fixed angle to be crossed (radians).
|
OrbitType |
getOrbitType() |
Get the orbit type defining the angle type.
|
PositionAngle |
getPositionAngle() |
Get the type of position angle.
|
eventOccurred, getHandler, getMaxCheckInterval, getMaxIterationCount, getThreshold, init, isForward, resetState, withHandler, withMaxCheck, withMaxIter, withThreshold
public PositionAngleDetector(OrbitType orbitType, PositionAngle positionAngle, double angle) throws OrekitIllegalArgumentException
The new instance uses default values for maximal checking interval
(AbstractDetector.DEFAULT_MAXCHECK
) and convergence threshold (AbstractDetector.DEFAULT_THRESHOLD
).
orbitType
- orbit type defining the angle typepositionAngle
- type of position angleangle
- fixed angle to be crossedOrekitIllegalArgumentException
- if orbit type is OrbitType.CARTESIAN
public PositionAngleDetector(double maxCheck, double threshold, OrbitType orbitType, PositionAngle positionAngle, double angle) throws OrekitIllegalArgumentException
maxCheck
- maximal checking interval (s)threshold
- convergence threshold (s)orbitType
- orbit type defining the angle typepositionAngle
- type of position angleangle
- fixed angle to be crossedOrekitIllegalArgumentException
- if orbit type is OrbitType.CARTESIAN
protected PositionAngleDetector create(double newMaxCheck, double newThreshold, int newMaxIter, EventHandler<? super PositionAngleDetector> newHandler)
create
in class AbstractDetector<PositionAngleDetector>
newMaxCheck
- maximum checking interval (s)newThreshold
- convergence threshold (s)newMaxIter
- maximum number of iterations in the event time searchnewHandler
- event handler to call at event occurrencespublic OrbitType getOrbitType()
public PositionAngle getPositionAngle()
public double getAngle()
public double g(SpacecraftState s) throws OrekitException
The value is the angle difference between the spacecraft and the fixed
angle to be crossed, with some sign tweaks to ensure continuity.
These tweaks imply the increasing
flag in events detection becomes
irrelevant here! As an example, the angle always increase in a Keplerian
orbit, but this g function will increase and decrease so it
will cross the zero value once per orbit, in increasing and decreasing
directions on alternate orbits..
g
in interface EventDetector
g
in class AbstractDetector<PositionAngleDetector>
s
- the current state information: date, kinematics, attitudeOrekitException
- if some specific error occursCopyright © 2002-2018 CS Systèmes d'information. All rights reserved.