FieldTLE fails to build TLE line from orbit parameters
When used with DerivativeStructure
, FieldTLE.buildLine2()
fails throwing the following error:
Exception in thread "main" java.lang.IllegalArgumentException: Cannot format given Object as a Number
at java.text.DecimalFormat.format(DecimalFormat.java:507)
at java.text.Format.format(Format.java:157)
at org.orekit.propagation.analytical.tle.FieldTLE.buildLine2(FieldTLE.java:549)
at org.orekit.propagation.analytical.tle.FieldTLE.getLine2(FieldTLE.java:445)
at fr.cnes.taylor.multifi.testing.TestGetLine.main(TestGetLine.java:31)
The cause is a missed call to getReal()
when parsing the inclination
, raan
, pa
and meanAnomaly
parameters (lines 549, 551, 555, 557).
I'll attach a minimal test case to reproduce the error. TestGetLine.java