feat: 显示机器人故障原因

This commit is contained in:
2026-04-13 21:55:17 +08:00
parent 906428fc3b
commit 7cd464bc6a
4 changed files with 134 additions and 0 deletions

View File

@@ -84,6 +84,10 @@ function legSessions(link: LinkTelemetry | null): Array<{ name: string; data: Li
</div>
<div class="summary telemetry-strip">
<p><strong>Robot Fault:</strong> {{ network?.robot_health?.fault_reason ?? 'n/a' }}</p>
<p><strong>Recovery State:</strong> {{ network?.robot_health?.recovery_state ?? 'n/a' }}</p>
<p><strong>Health Confidence:</strong> {{ network?.robot_health?.confidence ?? 'n/a' }}</p>
<p><strong>Health Updated:</strong> {{ formatTime(network?.robot_health?.updated_at) }}</p>
<p><strong>Transport:</strong> {{ network?.transport ?? 'n/a' }} / {{ network?.source_mode ?? 'n/a' }}</p>
<p><strong>Telemetry Peer:</strong> {{ network?.telemetry_receiver?.peer_id ?? 'n/a' }}</p>
<p><strong>Telemetry Registered:</strong> {{ network?.telemetry_receiver?.registered ? 'yes' : 'no' }}</p>

View File

@@ -3,6 +3,8 @@ export interface GpsTelemetry {
utc_time: string
latitude: number | null
longitude: number | null
raw_latitude_hex?: string
raw_longitude_hex?: string
satellites: number | null
altitude_m: number | null
coordinate_system: string
@@ -142,6 +144,13 @@ export interface TelemetryReceiverStatus {
reconnect_count: number
}
export interface RobotHealthStatus {
fault_reason: string
recovery_state: string
confidence: string
updated_at: string
}
export interface NetworkTelemetry {
peer_status: string
latency_ms: number | null
@@ -170,6 +179,7 @@ export interface NetworkTelemetry {
d_to_b: LinkTelemetry
}
telemetry_receiver: TelemetryReceiverStatus
robot_health: RobotHealthStatus
ingress: {
native_udp: NativeUdpIngress
}