Scout base — cmd_vel → M lines → command timeout → R4 watchdog

Scout base — cmd_vel → M lines → command timeout → R4 watchdog A sequence diagram generated by Archify. cmd_vel · Twist · 10 Hz on_cmd_vel stores (v, ω,t) latest (v, ω, t) read on each 20 Hz tick M l r · 20 Hz twist_to_pwm(); re-senteven if unchanged, underwrite_lock — feeds thewatchdog PWM left / right I … · 20 Hz (no cmd_vel) teleop stops publishing S (once) no cmd_vel for cmd_timeout0.25 s → S once, thennothing until a newcommand stop now A S ok last M l r before unplug USB unplugged → no more Mlines arrive motors off no M line for 300 ms →hardware watchdog W stop printed on serial; bridgecounts watchdog_stops whenthe link is up S node destructor / SIGINT:send S, then close port stop now 1 · command fresh 2 · teleop stops → cmd_timeout 3 · USB unplugged → R4 watchdog 4 · shutdown teleop · cmd_vel publisher · Sequence participant teleop cmd_vel publisher base_bridge · on_cmd_vel · shutdown · Sequence participant base_bridge on_cmd_vel · shutdown base_bridge · send timer 20 Hz · Sequence participant base_bridge send timer 20 Hz base_bridge · reader thread · Sequence participant base_bridge reader thread UNO R4 · firmware r4_base · Sequence participant UNO R4 firmware r4_base motors · TB6612 · TT motors · Sequence participant motors TB6612 · TT motors Legend main request return security async trace message