Interface AttitudesSequence.SwitchHandler

  • Enclosing class:
    AttitudesSequence

    public static interface AttitudesSequence.SwitchHandler
    Interface for attitude switch notifications.

    This interface is intended to be implemented by users who want to be notified when an attitude switch occurs.

    Since:
    7.1
    • Method Detail

      • switchOccurred

        void switchOccurred​(AttitudeProvider preceding,
                            AttitudeProvider following,
                            SpacecraftState state)
        Method called when attitude is switched from one law to another law.
        Parameters:
        preceding - attitude law used preceding the switch (i.e. in the past of the switch event for a forward propagation, or in the future of the switch event for a backward propagation)
        following - attitude law used following the switch (i.e. in the future of the switch event for a forward propagation, or in the past of the switch event for a backward propagation)
        state - state at switch time (with attitude computed using the preceding law)