I’m trying to simulate a scenario where I detect the passage of a slave satellite in the field-of-view of a camera onboard a master satellite. I’m trying to do so by using the InterSatDirectViewDetector combined with the FieldOfViewDetector (and combined with the logical not). I have a couple of questions, and would much appreciate any possible feedback:
- I see from the InterSatDirectViewDetector that the master and slave propagators shall not run in a propagators parallelizer. Shall I then propagate them side by side in a loop?
- Since the target is a spacecraft, I’m not sure how define the target in the FieldOfViewDetector. The input is a PVCoordinatesProvider, so should I define the detector in a propagation loop and retrieve the PV coordinates of the slave propagator with getPVCoordinates()? It doesn’t seem efficient this way;
- Am I implementing correctly the combination of the InterSatDirectViewDetector with the FieldOfViewDetector? The code is below;
- Finally, what I want to achieve is actually the XY positions of the target spacecraft from the camera sensor point-of-view. I don’t need at this point to define pixels in the camera, but need to get the orbit path as a X-Y plot of the camera. Is that possible via Orekit?
Below is my implementation of the final detector:
interSatDetector = InterSatDirectViewDetector(earth,propSlaveSat).withHandler(ContinueOnEvent()) masterSensorFOV = DoubleDihedraFieldOfView(center, Vector3D vec1, radians(halfAngleX), Vector3D vec2, radians(halfAngleY), margin) fovDetector = FieldOfViewDetector(PVCoordinatesProvider target, masterSensorFOV).withHandler(ContinueOnEvent()) finalDetector = BooleanDetector.andCombine([ interSatDetector, BooleanDetector.notCombine(fovDetector)])
Hoping it’s not too many questions, thank you very much in advance.