Class TransitionScanningLaw
java.lang.Object
gaiasky.util.gaia.BaseAttitudeDataServer<IAttitude>
gaiasky.util.gaia.AnalyticalAttitudeDataServer
gaiasky.util.gaia.TransitionScanningLaw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleRelative tolerance for exceeding the rampprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected DurationFields inherited from class AnalyticalAttitudeDataServer
ARCSEC_PER_S_TO_DEG_PER_DAY, FOUR_PI, nslSun, OBLIQUITY_DEG, OBLIQUITY_RAD, PI, PI_HALF, targetScanPeriod, TWO_PI, X_AXIS, Y_AXIS, Z_AXISModifier and TypeFieldDescriptionprotected static final doubleFactor converting from arcsec/s to deg/dayprotected static final doubleprotected NslSunprotected static final doubleprotected static final doubleThe obliquity of the eclipticprotected static final doubleMathematical constantsprotected static final doubleprotected longThe time in ns of one rotation of the satellite around its spin axis.protected static final doubleprotected static final Vector3DUnit vectorsprotected static final Vector3Dprotected static final Vector3DFields inherited from class BaseAttitudeDataServer
initialized, initialRequestedTimeContext, nativeTimeContext, withUncertaintiesCorrelationsModifier and TypeFieldDescriptionprotected booleanSome scanning laws have constants or tables for interpolation that need to be computed before the first use and recomputed after changing certain reference values.protected TimeContextprotected TimeContextnative and initially requested time context of the server - has to be set by the implementing classprotected booleanswitch to decide if attitude uncertainties and correlations should be calculated -
Constructor Summary
ConstructorsConstructorDescriptionThe constructor is the only way to set the duration of the ramp -
Method Summary
Modifier and TypeMethodDescriptiongetAttitudeNative(long time) Evaluate the attitude in the native time system of the servergetMode()Return the Epsl.Mode (preceding or following)Return the duration of the rampvoidInitialization mainly calculates the acceleration required for the specified rampPreferred method to set the Epsl.Mode (it can also be set using setNuRef)Methods inherited from class AnalyticalAttitudeDataServer
getNominalSunVector, getNuRef, getOmegaRef, getRefTime, getTargetPrecessionRate, getTargetScanPeriod, getTargetScanRate, getXiRef, inGap, setDefault, setNuRef, setOmegaRef, setRefTime, setTargetPrecessionRate, setTargetScanPeriod, setTargetScanRate, setXiRefModifier and TypeMethodDescriptionprotected NslSundoublegetNuRef()Get the reference revolving phase angledoubleGet the reference scan phase anglelongRef time in nanoseconds since epoch.doubleGet the target precession ratelongGet the target scan perioddoubleGet the target scan ratedoublegetXiRef()Get the reference solar aspect anglebooleaninGap(long time) voidSet all parameters to default values (from GaiaParam)voidsetNuRef(double nuRef) Set the reference value for the precession phase angle (nu)voidsetOmegaRef(double omegaRef) Set the reference value for the spin phase abgle (Omega)voidsetRefTime(long tRef) Sets the reference time in nanoseconds.voidsetTargetPrecessionRate(double targetPrecessionRate) Set the target precession ratevoidsetTargetScanPeriod(long targetScanPeriod) Set the target scan periodvoidsetTargetScanRate(double targetScanRate) Set the target scan ratevoidsetXiRef(double xiRef) Set the reference value for the solar aspect angle (xi)Methods inherited from class BaseAttitudeDataServer
getAttitude, getAttitude, getAttitude, isInitialized, setInitializedModifier and TypeMethodDescriptiongetAttitude(long time) getAttitude(Instant instant) getAttitude(Date date) booleanvoidsetInitialized(boolean initialized)
-
Field Details
-
ramp
-
acc
protected double acc -
om0
protected double om0 -
om1
protected double om1 -
om2
protected double om2 -
om3
protected double om3 -
om4
protected double om4 -
eps
protected double epsRelative tolerance for exceeding the ramp
-
-
Constructor Details
-
TransitionScanningLaw
The constructor is the only way to set the duration of the ramp- Parameters:
ramp-
-
-
Method Details
-
getMode
-
setMode
Preferred method to set the Epsl.Mode (it can also be set using setNuRef)- Parameters:
mode- EPSL preceding or following- Returns:
- This object with the right mode set
-
getRampDuration
Return the duration of the ramp -
initialize
public void initialize()Initialization mainly calculates the acceleration required for the specified ramp -
getAttitudeNative
Description copied from class:BaseAttitudeDataServerEvaluate the attitude in the native time system of the server- Specified by:
getAttitudeNativein classBaseAttitudeDataServer<IAttitude>- Parameters:
time- - the time elapsed since the epoch of J2010 in ns (TCB)- Returns:
- attitude for the given time
- See Also:
-