feat: 显示机器人故障原因
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user