I’m trying to use the FieldOfViewDetector and need to make a FieldOfView object. So, am trying to create a CircularFieldOfView, but am a bit confused on the constructor:
CircularFieldOfView(Vector3D center, double halfAperture, double margin)
HalfAperature and margin make sense as simply radian inputs, but I can’t seem to get center to work. What would be the easiest way to get Vector3D center through an attitude provider.
Here’s my current code:
earth = OneAxisEllipsoid(Constants.WGS84_EARTH_EQUATORIAL_RADIUS,
tle = TLE(“1 44235U 19029A 20178.66667824 .02170155 00000-0 40488-1 0 9998”,
“2 44235 00.0000 163.9509 0005249 306.3756 83.0170 15.45172567 61683”)
propogator = TLEPropagator.selectExtrapolator(tle)
attitudeProvider = NadirPointing(FramesFactory.getEME2000(), earth)
fov = CircularFieldOfView(???,0.05,0)
fov_detector = FieldOfViewDetector(propogator, fov)
Also, I’m a bit confused how to access the spacecraft frame–do I get that frame from LocalOrbitalFrame or is it somehow imbedded in the propagator?
Any advice would be incredibly helpful!