VESC CAN health monitor: watchdog + auto-recovery for dual motors #651

Closed
opened 2026-03-17 11:28:10 -04:00 by sl-jetson · 0 comments
Collaborator

Goal

Monitor VESC CAN bus health and implement auto-recovery for both motors (IDs 61, 79).

Requirements

  • Monitor CAN bus for both VESCs: detect frame drops, bus-off, timeout
  • Watchdog: if no telemetry from a VESC for >500ms, publish alert and attempt recovery
  • Recovery sequence: send CAN alive frame, re-request telemetry, escalate to e-stop if unresponsive for >2s
  • Publish /vesc/health (JSON: bus_state, frame_rate, error_counts, per-motor alive status)
  • Integrate with /diagnostics
  • Log all fault events for post-mortem
  • Unit tests
## Goal Monitor VESC CAN bus health and implement auto-recovery for both motors (IDs 61, 79). ## Requirements - Monitor CAN bus for both VESCs: detect frame drops, bus-off, timeout - Watchdog: if no telemetry from a VESC for >500ms, publish alert and attempt recovery - Recovery sequence: send CAN alive frame, re-request telemetry, escalate to e-stop if unresponsive for >2s - Publish /vesc/health (JSON: bus_state, frame_rate, error_counts, per-motor alive status) - Integrate with /diagnostics - Log all fault events for post-mortem - Unit tests
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seb/saltylab-firmware#651
No description provided.