public final class AngularMomentumExcessDetector extends AbstractDetector
AbstractDetector.PropagationDelayType
EventDetector.Action
actionAtEntry, actionAtExit, DEFAULT_MAXCHECK, DEFAULT_THRESHOLD, removeAtEntry, removeAtExit, shouldBeRemovedFlag
DECREASING, INCREASING, INCREASING_DECREASING
Constructor and Description |
---|
AngularMomentumExcessDetector(double momentum,
Frame inertial,
int slopeSelectionIn)
Constructor for an AngularMomentumExcessDetector instance.
|
AngularMomentumExcessDetector(double momentum,
Frame inertial,
int slopeSelectionIn,
double maxCheck,
double threshold)
Constructor for an AngularMomentumExcessDetector instance with complementary parameters.
|
AngularMomentumExcessDetector(double momentum,
Frame inertial,
int slopeSelectionIn,
double maxCheck,
double threshold,
EventDetector.Action ascending,
EventDetector.Action descending)
Constructor for an AngularMomentumExcessDetector instance with complementary parameters.
|
Modifier and Type | Method and Description |
---|---|
EventDetector |
copy()
A copy of the detector.
|
EventDetector.Action |
eventOccurred(SpacecraftState s,
boolean increasing,
boolean forward)
Handle an angular momentum excess event and choose what to do next.
|
double |
g(SpacecraftState s)
Compute the value of the switching function.
|
void |
setAttitudeRepresentedFrame(Frame frame)
Define the frame represented by the attitude law
|
void |
setInertia(RealMatrix inertia,
Frame frame)
Define the inertia matrix (from CoM and in vehicle axis)
|
getActionAtEntry, getActionAtExit, getInertialFrame, getMaxCheckInterval, getMaxIterationCount, getPropagationDelayType, getSignalEmissionDate, getSignalReceptionDate, getSlopeSelection, getThreshold, init, isRemoveAtEntry, isRemoveAtExit, logEventsOverTimeInterval, resetState, setEpsilonSignalPropagation, setMaxCheckInterval, setMaxIterSignalPropagation, setPropagationDelayType, shouldBeRemoved
public AngularMomentumExcessDetector(double momentum, Frame inertial, int slopeSelectionIn)
momentum
- angular momentum value triggering the event.inertial
- frame with respect to which the w is to be computedslopeSelectionIn
- g-function slope selection (0, 1, or 2)PositionAngle
public AngularMomentumExcessDetector(double momentum, Frame inertial, int slopeSelectionIn, double maxCheck, double threshold)
momentum
- AOL value triggering the event.inertial
- equator with respect to which the AOL is to be computedslopeSelectionIn
- g-function slope selection (0, 1, or 2)maxCheck
- maximum check (see AbstractDetector
)threshold
- threshold (see AbstractDetector
)public AngularMomentumExcessDetector(double momentum, Frame inertial, int slopeSelectionIn, double maxCheck, double threshold, EventDetector.Action ascending, EventDetector.Action descending)
momentum
- momentum excess value triggering the event.inertial
- inertial frame wrt the angular velocity is computedslopeSelectionIn
- g-function slope selection (0, 1, or 2)maxCheck
- maximum check (see AbstractDetector
)threshold
- threshold (see AbstractDetector
)ascending
- action performed when ascendingdescending
- action performed when descendingpublic final void setInertia(RealMatrix inertia, Frame frame)
inertia
- the inertia 3x3 matrix expressed in CoMframe
- Framepublic final void setAttitudeRepresentedFrame(Frame frame)
frame
- the attitude represented lawpublic final EventDetector.Action eventOccurred(SpacecraftState s, boolean increasing, boolean forward) throws PatriusException
eventOccurred
in interface EventDetector
eventOccurred
in class AbstractDetector
s
- the current state information : date, kinematics, attitudeincreasing
- if true, the value of the switching function increases when times increases around eventforward
- if true, the integration variable (time) increases during integration.PatriusException
- if some specific error occurspublic final double g(SpacecraftState s) throws PatriusException
g
in interface EventDetector
g
in class AbstractDetector
s
- the current state information: date, kinematics, attitude for forces and events
computation, mass provider, and additional statesPatriusException
- if some specific error occurspublic EventDetector copy()
Copyright © 2023 CNES. All rights reserved.