ADCS.helpers.animations.godot.fov module¶
- class ADCS.helpers.animations.godot.fov.SensorFOV(boresight_body, fov_half_rad, assumed=False, bidirectional=False)[source]¶
Bases:
objectField of view of a directional sensor in one convention.
Sensor classes store their field of view inconsistently: the star trackers take a full cone angle, the Earth horizon sensor a half cone angle, and the coarse Sun sensors none at all. Visualization and other consumers use this normalized form instead.
- Parameters:
boresight_body (numpy.ndarray) – Unit boresight in the body frame, shape
(3,).fov_half_rad (float) – Half-cone angle about the boresight [rad].
assumed (bool) –
Trueif the angle is implied by the measurement model rather than stored on the sensor.bidirectional (bool) –
Trueif the sensor also sees the cone about-boresight_body.
- assumed: bool = False¶
- bidirectional: bool = False¶
- boresight_body: ndarray¶
- fov_half_rad: float¶
- ADCS.helpers.animations.godot.fov.sensor_fov(sensor)[source]¶
Normalize a sensor’s field of view to a half-cone angle in radians.
StarTracker,StarTrackerQuaternion:fovis a full angle, halved here.EarthHorizonSensor:fovis already a half angle.SunSensor: cosine response clipped at zero, i.e. a hemisphere (pi/2) aboutaxis; flaggedassumed.SunPair: dual-hemisphere response about±axis; flaggedassumedandbidirectional.
Sensors without a pointing direction (gyros, magnetometers, GPS) return
None.- Parameters:
sensor (
Sensor) – Any sensor instance.- Returns:
The normalized field of view, or
None.- Return type:
SensorFOV | None