s6.app.uplink¶
Push mock telemetry snapshots into a visualizer uplink WebSocket.
This command opens a client WebSocket connection to a visualizer uplink endpoint and continuously publishes a synthetic telemetry payload. The payload matches the visualizer’s default binding paths so it can drive the instrument tip and marker immediately.
- s6.app.uplink.parse_args(argv: list[str] | None = None) Namespace
Parse command-line arguments for the mock uplink publisher.
- Parameters:
argv (list of str, optional) – Explicit argument vector for tests or embedding.
- Returns:
Parsed command-line options.
- Return type:
argparse.Namespace
- s6.app.uplink.build_mock_payload(timestamp_s: float, radius: float = 0.02, marker_offset: float = 0.01) dict[str, Any]
Build a visualizer-compatible mock telemetry snapshot.
- Parameters:
timestamp_s (float) – Monotonic timestamp in seconds used to vary the vector.
radius (float, optional) – Radius of the synthetic motion in solver units.
marker_offset (float, optional) – X-axis offset between the tip and marker vectors.
- Returns:
Telemetry payload matching the visualizer’s default binding paths.
- Return type:
dict of str to Any
- async s6.app.uplink.publish_mock_telemetry(args: Namespace) int
Connect to the uplink endpoint and publish synthetic snapshots.
- Parameters:
args (argparse.Namespace) – Parsed command-line arguments.
- Returns:
Process-style status code.
- Return type:
int
- s6.app.uplink.main(argv: list[str] | None = None) int
Run the mock telemetry uplink publisher.
- Parameters:
argv (list of str, optional) – Explicit argument vector for tests or embedding.
- Returns:
Process-style exit code.
- Return type:
int