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.
| 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 |
|---|---|
void |
compute(PVCoordinatesProvider pvProv)
Deprecated.
as of 4.5,
ConstantSpinSlew object should be built either from constructor or from
class ConstantSpinSlewComputer. |
Attitude |
getAttitude(AbsoluteDate date,
Frame frame)
Compute the attitude.
|
Attitude |
getAttitude(Orbit orbit)
Compute the attitude corresponding to an orbital state.
|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Warning: provided
PVCoordinatesProvider is here not used. |
double |
getDuration() |
String |
getNature()
Return the nature of the leg.
|
AbsoluteDateInterval |
getTimeInterval()
Return the time interval of validity of the leg
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
void |
truncate(AbsoluteDateInterval newIntervalOfValidityIn)
Truncate the time interval of validity of the leg
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoPrettyStringpublic 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 failed@Deprecated public void compute(PVCoordinatesProvider pvProv) throws PatriusException
ConstantSpinSlew object should be built either from constructor or from
class ConstantSpinSlewComputer.compute in interface SlewpvProv - : local position-velocity provider around current datePatriusException - orekit exceptionpublic Attitude getAttitude(AbsoluteDate date, Frame frame) throws PatriusException
getAttitude in interface Slewdate - : current dateframe - : reference frame from which attitude is computedPatriusException - orekit exceptionpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives)
setSpinDerivativesComputation in interface AttitudeProvidercomputeSpinDerivatives - 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 AttitudeProviderpvProv - local position-velocity provider around current datedate - current dateframe - reference frame from which attitude is computedPatriusException - if attitude cannot be computedpublic Attitude getAttitude(Orbit orbit) throws PatriusException
getAttitude in interface AttitudeProviderorbit - current orbitPatriusException - if attitude cannot be computedpublic final AbsoluteDateInterval getTimeInterval()
getTimeInterval in interface Legpublic void truncate(AbsoluteDateInterval newIntervalOfValidityIn) throws PatriusException
truncate in interface LegnewIntervalOfValidityIn - the new time intervalPatriusException - if the new time interval is not included in the current time intervalpublic final double getDuration()
throws PatriusException
PatriusException - if the time interval is not computedCopyright © 2020 CNES. All rights reserved.