ResetTargetingLoop

Top  Previous  Next

Description


The ResetTargetingLoop command is an optional component of the Targeting loop which allows the user to re-initialize the seeds and perturbations to the Vary command if the Targeting process is not converging properly. For more information, see the Targeting Guide.

 

 

Syntax


Target;

    Iterate Spacecraft1;

    Vary ImpulsiveBurn1.BurnDirection[0] = seed + perturbation;

 

    Maneuver Spacecraft1 using ImpulsiveBurn1;

    Achieve Spacecraft1.Apogee = 8000 +/- 10;

 

    If (ImpulsiveBurn1.BurnDirection[0] > 1000);

           

          // Decrease the seed and perturbation by a factor of 10

           seed = seed/10;

           perturbation = perturbation/10;

           

          // Reset the Targeter with the new seed and perturbation

          ResetTargetingLoop;

 

    End;

End;

 

Where:

seed is a Variable containing the seed value for ImpulsiveBurn1.BurnDirection[0]

perturbation is a Variable containing the perturbation for ImpulsiveBurn1.BurnDirection[0]

8000 is the goal value for Spacecraft1.Apogee

10 is the allowable tolerance value for Spacecraft1.Apogee

 

 

Details


The ResetTargetingLoop command can only be used inside a Target loop.

The ResetTargetingLoop command can be used to reset any or all of the seeds and perturbations fed into the Vary command.

An If loop can be used to detect whether the Targeter is proceeding as expected.

 

 

See Also


Achieve Command

DifferentialCorrector Properties and Methods

If

Iterate Command

Target Command

Targeting Guide

Vary Command