Scripting Maneuver Sets

Listed below are significant aspects about maneuvers and their interfaces in the Ansys Orbit Determination Tool Kit (ODTK®) application.

  • Maneuvers are managed as ordered sets rather than unordered lists.
  • The ODTK application automatically sorts maneuvers by:
    1. Start Time (finite maneuvers) or Epoch (impulsive maneuvers)
    2. Maneuver type
    3. Enabled / disabled status
    4. Name
  • Maneuver sets have a method, InsertNew(string), for which the string is the name of the maneuver choices.
  • Maneuvers have methods FindByName(string) and RemoveByName(string), where string is the name of a maneuver.
  • For ODTK application versions 6 and earlier, you created a new maneuver element and then pushed it onto the bottom of the list using push_back(). However, sets do not support push_back(). Simply replacing push_back() with insert() does not guarantee that the new element will be at the end of the set, because the set is sorted.

Recommended methods for finite and impulsive maneuvers

The code samples below demonstrate the recommended methods for working with maneuver sets. Each sample includes both finite and impulsive examples. Note the use of iterators to work with items in the set.

COM

Cross-Platform API

Add Rectified Sinusoid1D model

For this case, the scripting is generally similiar to the Finite Manuevers. However, below is an example of VBS script code that adds a RevRectifiedSinusoid1D Model in the Radial Direction.

COM