« API TLE options » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
|||
| Ligne 3 : | Ligne 3 : | ||
=== Single TLE === | === Single TLE === | ||
We have to instantiate a [{{PathCurrentJavaDoc}}/fr/cnes/dynvol/gentleman/calc/data/tle/GtmSingleTle.html GtmSingleTle] object. Two constructors are available : | |||
* one with the minimum data to give, the other ones set with default values: | |||
<syntaxhighlight lang="java"> | |||
final AbsoluteDate date = new AbsoluteDate("2020-01-01T00:00:00.000", GtmConstants.UTC); | |||
final GtmGeoPropagator geo = new GtmGeoPropagator(); | |||
... | |||
// GtmSingleTle data | |||
final GtmSingleTle data = new GtmSingleTle(date, geo.getAmountOfPoints()); | |||
* one with all the needed data. The example below is fully equivalent to the one above. | |||
<syntaxhighlight lang="java"> | |||
final GtmSingleTle data = new GtmSingleTle(date, geo.getAmountOfPoints(), 1.0, false, false, GtmBuildingMethods.DIFFERENTIAL, 30); | |||
</syntaxhighlight> | |||
=== Best single TLE === | === Best single TLE === | ||
Version du 10 septembre 2021 à 12:37
The way to set how TLE(s) will be generated will depend of the chosen option as described here.
Single TLE
We have to instantiate a GtmSingleTle object. Two constructors are available :
- one with the minimum data to give, the other ones set with default values:
final AbsoluteDate date = new AbsoluteDate("2020-01-01T00:00:00.000", GtmConstants.UTC);
final GtmGeoPropagator geo = new GtmGeoPropagator();
...
// GtmSingleTle data
final GtmSingleTle data = new GtmSingleTle(date, geo.getAmountOfPoints());
* one with all the needed data. The example below is fully equivalent to the one above.
<syntaxhighlight lang="java">
final GtmSingleTle data = new GtmSingleTle(date, geo.getAmountOfPoints(), 1.0, false, false, GtmBuildingMethods.DIFFERENTIAL, 30);