public class AttitudeLegLaw extends Object implements AttitudeLaw
Constructor and Description |
---|
AttitudeLegLaw(AttitudeLaw attitudelawBefore,
AttitudeLeg attitudeleg,
AttitudeLaw attitudelawAfter)
Build an attitude law version "attitudeLeg".
|
Modifier and Type | Method and Description |
---|---|
Attitude |
getAttitude(Orbit orbit)
Compute the attitude corresponding to an orbital state.
|
Attitude |
getAttitude(PVCoordinatesProvider pvProv,
AbsoluteDate date,
Frame frame)
Compute the attitude corresponding to an orbital state.
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
public AttitudeLegLaw(AttitudeLaw attitudelawBefore, AttitudeLeg attitudeleg, AttitudeLaw attitudelawAfter)
attitudelawBefore
- : law before interval of validityattitudeleg
- : law during interval of validityattitudelawAfter
- : Law after interval of validitypublic Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame) throws PatriusException
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 computedpublic Attitude getAttitude(Orbit orbit) throws PatriusException
getAttitude
in interface AttitudeProvider
orbit
- current orbitPatriusException
- if attitude cannot be computedpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives) throws PatriusException
Spin derivatives computation applies to lawBefore
, leg
and lawAfter
.
setSpinDerivativesComputation
in interface AttitudeProvider
computeSpinDerivatives
- true if spin derivatives should be computedPatriusException
- if spin derivatives can not be computedCopyright © 2019 CNES. All rights reserved.