[1.4] core: ardupilot_manager: Fix Pixhawk restart reconnect - #4114
[1.4] core: ardupilot_manager: Fix Pixhawk restart reconnect#4114joaoantoniocardoso wants to merge 2 commits into
Conversation
Automated PR Review0. Summary
Fixes serial autopilot restart on boards that USB-re-enumerate (Pixhawk) by (a) serializing 1. Correctness & Implementation Bugs
4. Performance
6. Code Quality & Style
7. Tests
8. DocumentationComments here are a good example of the AGENTS.md "explain why, not what" rule — the block at Generated by PR Review Bot. This is advisory, a human reviewer must still approve. |
9901d93 to
7afdd86
Compare
…nect After a Pixhawk reboot the USB device re-enumerates with a new path while the MAVLink router keeps a stale serial handle. Wait for the board to drop and return, then reopen the link on the freshly detected path. On failure, stop the router and clear should_be_running so the stale handle is not left running with its watchdog disarmed.
Serial board restarts wait for USB re-enumeration before reopening the MAVLink link, which can take tens of seconds.
7afdd86 to
19c3c4c
Compare
Summary
/restarttimeout to cover the backend reconnect windowFixes #4109 for 1.4. Will be ported to master on another PR.
Test plan
1.4.4-beta.15)POST /ardupilot-manager/v1.0/restartmavlink-routerdprocess remains after restart