Compute time of Next 0 Mean Longitude Crossing

Hi,

I am new to the Orekit world and continue to be amazed at how elegant the solutions can be when you know what can be done.

I am trying to figure out an “elegant” way to determine the time of the next zero mean longitude crossing.

I have a Propagator instance, not sure the simplest path forward.

Let me know if anyone has any recos.

Thanks

Rich

Hi @richard.m.huey,

I guess what you are looking for is a LongitudeCrossingDetector. You can add this as an event (with longitude to detect as “0”) to the already existing propagator instance, preferably with a StopOnEvent handler which will stop the propagation on the next zero longitude crossing.

You can find a basic Events Management Tutorial here.

Please reach out here if you have any difficulty in setting up the event.