public class ConstantSpinSlew extends Object implements Slew
This class represents a constant spin slew.
The Constant spin slew is a "simple" slew that computes the attitude of the satellite using a spherical interpolation
of the quaternions representing the starting and ending attitudes.
Some constraints, such as minimal maneuver duration or maximal angular velocity, must be taken into account during
the maneuver computation.
Like all the other attitude legs, its interval of validity has closed endpoints.
LEG_NATURE
Constructor and Description |
---|
ConstantSpinSlew(Attitude initAtt,
Attitude finalAtt)
Constructor for slew with a duration constraint.
|
ConstantSpinSlew(Attitude initAtt,
Attitude finalAtt,
double spin,
String natureIn)
Constructor for slew with an angular velocity constraint.
|
ConstantSpinSlew(Attitude initAtt,
Attitude finalAtt,
String natureIn)
Constructor for slew with a duration constraint.
|
Modifier and Type | Method and Description |
---|---|
ConstantSpinSlew |
copy(AbsoluteDateInterval newIntervalOfValidity)
Creates a new leg from this one.
|
Attitude |
getAttitude(AbsoluteDate date,
Frame frame)
Compute the attitude.
|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Warning: provided
PVCoordinatesProvider is here not used. |
double |
getDuration() |
String |
getNature()
Returns the nature of the leg.
|
AbsoluteDateInterval |
getTimeInterval()
Returns the time interval of the leg.
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeSpinByFD, computeSpinDerivativeByFD
getDate, getEnd, toPrettyString
getAttitude
public ConstantSpinSlew(Attitude initAtt, Attitude finalAtt) throws PatriusException
initAtt
- initial attitude at start datefinalAtt
- final attitude at end datePatriusException
- thrown if some frame transformation failedpublic ConstantSpinSlew(Attitude initAtt, Attitude finalAtt, String natureIn) throws PatriusException
initAtt
- initial attitude at start datefinalAtt
- final attitude at end datenatureIn
- naturePatriusException
- thrown if some frame transformation failedpublic ConstantSpinSlew(Attitude initAtt, Attitude finalAtt, double spin, String natureIn) throws PatriusException
ConstantSpinSlewComputer
for strict backward compatibilityinitAtt
- initial attitude at start datefinalAtt
- final attitude at end datespin
- spin valuenatureIn
- naturePatriusException
- thrown if some frame transformation failedpublic Attitude getAttitude(AbsoluteDate date, Frame frame) throws PatriusException
getAttitude
in interface Slew
date
- : current dateframe
- : reference frame from which attitude is computedPatriusException
- orekit exceptionpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives)
setSpinDerivativesComputation
in interface AttitudeProvider
computeSpinDerivatives
- true if spin derivatives should be computedpublic Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
PVCoordinatesProvider
is here not used.
getAttitude
in interface AttitudeProvider
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computedPatriusException
- if attitude cannot be computed for provided datepublic final AbsoluteDateInterval getTimeInterval()
getTimeInterval
in interface Leg
public ConstantSpinSlew copy(AbsoluteDateInterval newIntervalOfValidity)
public final double getDuration() throws PatriusException
PatriusException
- if the time interval is not computedCopyright © 2021 CNES. All rights reserved.