API TLE generation

De Gentleman
Aller à la navigation Aller à la recherche
La version imprimable n’est plus prise en charge et peut comporter des erreurs de génération. Veuillez mettre à jour les signets de votre navigateur et utiliser à la place la fonction d’impression par défaut de celui-ci.

Once we have initialize TLE(s) data (see here) and options (see here), we will have to instantiate a GtmBuilder object as is:

// TLE builder
final GtmBuilder build = new GtmBuilder(TLE_OBJ, geo.getSpacecraftStateList());

... or in case of existing maneuvers:

final GtmBuilder build = new GtmBuilder(TLE_OBJ, geo.getSpacecraftStateList(), listOfManeuversDates);

Then we will have to call to the method corresponding to the TLE(s) computation option:

// Building TLE for single or best single option
// data is a GtmSingleTle or  GtmBestTle object
final int deltaNb = 0;
final int deltaNbP = 0;
final boolean flagMan = false
final TLE tle = build.computeBestTle(data, deltaNb , deltaNbP , flagMan );
// Building TLE for best dated or periodic option
// data is a GtmBestTlesDates or a GtmBestTlesPeriod object
final List<TLE> bestTles = build.computeBestTles(data, flagMan);

Results will be stord in a PATRIUS TLE objects.