ADCS.helpers.animations.godot.fov module

class ADCS.helpers.animations.godot.fov.SensorFOV(boresight_body, fov_half_rad, assumed=False, bidirectional=False)[source]

Bases: object

Field 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) – True if the angle is implied by the measurement model rather than stored on the sensor.

  • bidirectional (bool) – True if 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: fov is a full angle, halved here.

  • EarthHorizonSensor: fov is already a half angle.

  • SunSensor: cosine response clipped at zero, i.e. a hemisphere (pi/2) about axis; flagged assumed.

  • SunPair: dual-hemisphere response about ±axis; flagged assumed and bidirectional.

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