Hi,
I solved the argument error. The TLESpacecraftStates needs to be converted to a Java list. You can solve the issue like that:
# Convert to a list
states_list = ArrayList()
for state in TLESpacecraftStates:
states_list.add(state)
tleTemplate = TLE(11111, "U", 2020, 222, "A", 0, 333, date_start, 0.0, -138.8546595251871, 0.0, 0.00029131750532795117, 98.24086439196059, 66.12659133154932, -55.56899656065682, 0.0, 0, 0.0)
tleTemplate = stateToTLE(estimatedPropagator.propagate(date_start), tleTemplate)
builder = TLEPropagatorBuilder(tleTemplate, PositionAngle.TRUE, 1.0)
fitter = FiniteDifferencePropagatorConverter(builder, 0.001, 1000)
fitter.convert(states_list, False, 'BSTAR')
I added the BSTAR parameter as free parameter. Indeed, I think it is interesting to fit it.
The convert method is now used but another exception is raised: MathIllegalStateException for the Q.R decomposition. This must be investigated.
Bryan