[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orekit Users] Issue with EventState/Propagator/Elevation Detector - HELP!!
The ElevationDetector mechanism discussed in the tutorial
https://www.orekit.org/static/tutorial/propagation.html
works fine for me, except for one thing. When I add multiple
ElevationDetectors (wth different station locations and different
EventHandlers) to the (Keplerian) propagator, the callbacks to eventOccurred
in the EventHandler get mixed up. What I mean is that
1) Generally, the EventHandler associated with a given station location is
called. GOOD
2) Sometimes, the EventHandler associated with the wrong station is called.
For example, I set a threshold elevation of +10 degrees and most often the
EventHandlers are called when the elevation is just about exactly +10, but
sometimes an EventHandler is called when the elevation is -60 degrees to -30
degrees. E.g., Station A is at +10 but the EventHandler for Station B is
called. BAD
Tracing through the call stack...
Propagator.acceptStep calls
EventState.doEvent calls
AbstractDetector.eventOccurred calls
EventHandler.eventOccurred
but it is the wrong detector (and wrong EventHandler).
The EventState is a bit complicated and I don't really understand how this is
supposed to work. What I want to be able to do is to propagate the orbit ONCE,
flagging elevation events for ALL GROUND STATIONS. But obviously the code
needs to know which stations trigger which events, and that it currently
getting mixed up.
Any suggestions?
Thanks!
Jim