necst.web.live_telemetry¶
Best-effort live ROS telemetry cache for the Operator Console.
This module is intentionally read-only. It subscribes to NECST status topics
and exposes a compact dictionary that can be merged by status_model. It is
safe to import outside a ROS environment; ROS imports happen only when the cache
is started.
- class LiveTelemetryCache(*, enabled=True, node_name='necst_operator_console_status')[source]¶
Bases:
objectRead-only ROS status cache for current antenna/chopper console display.
- Parameters:
enabled (bool) –
node_name (str) –
- wait_for_initial_position(timeout_sec=2.0)[source]¶
Wait briefly for the first encoder/pointing sample after startup.
This prevents the console from starting with empty/demo Current Az/El simply because subscriptions have not yet received their first samples. It is read-only and does not send any telescope command.
- Parameters:
timeout_sec (float) –
- Return type:
bool