ADCS.helpers.animations.godot.live module¶
- class ADCS.helpers.animations.godot.live.LiveRecorder(server, satellite, ephem, start_j2000, dt, n_steps, run_id='0', tee_path=None, wait_for_viewer=30.0, bookmarks=None, sites=None)[source]¶
Bases:
objectStream a running simulation to a
VizServer.Created by
simulate()whenviz_streamis given. Sun, Moon and Earth orientation are derived for the whole time grid up front (one vectorized pass), so each step only packs a preallocated row and hands it to the server.Live rows contain the required channels plus
r_moon,sunlit_binary, wheel momentum/speed and actuator commands. Torques, goals, estimates and sensor channels are only in the full post-run log (viz_log).- Parameters:
server (VizServer) – Server to publish to. In lockstep mode the recorder waits up to
wait_for_viewerseconds for a viewer before the first step.satellite (Satellite) – True satellite model (for the scene and wheel inertia).
ephem (DE421) – Ephemeris of the simulation.
start_j2000 (float) – Start time, J2000 centuries (TT).
dt (float) – Step [s].
n_steps (int) – Number of steps.
run_id (str) – Run identifier in the stream.
tee_path (str | Path | None) – Also append the streamed rows to a vizlog at this path.
wait_for_viewer (float | None) – Seconds to wait for a viewer in lockstep mode.
bookmarks (List[Any] | None) – Timeline bookmarks (
ADCS.helpers.animations.godot.timeline), byt_s.sites (List[Any] | None) – Ground sites whose passes the timeline shows.
- step(k, x, os, u)[source]¶
Publish the state at step
k(the start of the step, as recorded).- Parameters:
k (int)
x (State)
os (Orbital_State)
u (ndarray | None)
- Return type:
None