ADCS.helpers.animations.godot.scene module

ADCS.helpers.animations.godot.scene.build_scene(satellite, model=None)[source]

Static description of a spacecraft for scene.json.

Body-frame geometry the viewer needs to draw the spacecraft and, later, its actuators and sensor fields of view. All vectors are in the BODY frame, lengths in metres.

Parameters:
  • satellite (Satellite) – The (true) satellite model.

  • model (str | Path | None) – Optional .viz.json sidecar from import_spacecraft(). The scene then points to the imported model and links actuators and sensors to its nodes.

Returns:

JSON-serializable dictionary (numpy arrays allowed; the writer converts them).

Return type:

Dict[str, Any]

ADCS.helpers.animations.godot.scene.sensor_layout(satellite)[source]

Where each attitude sensor’s values sit in the flat sensor_hist vector.

Satellite.sensor_readings concatenates the attitude (non-GPS) sensors in order, then one momentum reading per reaction wheel.

Returns:

One entry per block: {"id", "type", "slice": [i0, i1]}; wheel momentum blocks have type "RW_momentum".

Parameters:

satellite (Satellite)

Return type:

List[Dict[str, Any]]