public class ConstantSpinSlew extends AbstractSlew
This class extends the AbstractSlew.
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.
Modifier and Type | Class and Description |
---|---|
static class |
ConstantSpinSlew.Constraint
Enumeration of the existing constraint types
|
computed, currentProvider, fLaw, iLaw, intervalOfValidity
Constructor and Description |
---|
ConstantSpinSlew(AttitudeProvider initialLaw,
AttitudeProvider finalLaw,
AbsoluteDate initialDate,
AbsoluteDate finalDate)
Builds a ConstantSpinSlew based on a given interval of dates
|
ConstantSpinSlew(AttitudeProvider initialLaw,
AttitudeProvider finalLaw,
AbsoluteDate date,
boolean isStartDate,
double constraintValue,
ConstantSpinSlew.Constraint constraintType)
Builds a ConstantSpinSlew from a type of constraint and its value
|
Modifier and Type | Method and Description |
---|---|
void |
compute(PVCoordinatesProvider pvProv)
Compute the slew corresponding to an orbital state.
|
Attitude |
getAttitude(AbsoluteDate date,
Frame frame)
Compute the attitude.
|
String |
getNature()
Return the nature of the leg.
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
getAttitude, getAttitude, getDuration, getTimeInterval
public ConstantSpinSlew(AttitudeProvider initialLaw, AttitudeProvider finalLaw, AbsoluteDate initialDate, AbsoluteDate finalDate)
initialLaw
- initial attitude lawfinalLaw
- final attitude lawinitialDate
- initial datefinalDate
- final datepublic ConstantSpinSlew(AttitudeProvider initialLaw, AttitudeProvider finalLaw, AbsoluteDate date, boolean isStartDate, double constraintValue, ConstantSpinSlew.Constraint constraintType)
initialLaw
- initial attitude lawfinalLaw
- final attitude lawdate
- begin or end date of the slewisStartDate
- if the date is begin dateconstraintValue
- value of the constraint : seconds for duration constraint and rad/s for angular velocity contraintconstraintType
- type of constraint : duration or angular velocitypublic void compute(PVCoordinatesProvider pvProv) throws PatriusException
Slew
pvProv
- : local position-velocity provider around current datePatriusException
- orekit exceptionpublic Attitude getAttitude(AbsoluteDate date, Frame frame) throws PatriusException
Slew
date
- : current dateframe
- : reference frame from which attitude is computedPatriusException
- orekit exceptionpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives)
computeSpinDerivatives
- true if spin derivatives should be computedpublic String getNature()
Copyright © 2019 CNES. All Rights Reserved.