mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
* feat(tools): add mavlink_serial_bridge.py reference bridge application Implements the SERIAL_CONTROL bridge application described in the Bridge Application section of docs/en/uart/serial_passthrough.md: it connects to the vehicle over MAVLink, exposes a virtual serial port (PTY), and translates traffic bidirectionally for any passthrough-capable port (TEL/GPS/ESC bitbang). Existing ESC configuration/flashing tools and GPS/RTK utilities can point at the exposed PTY without native MAVLink support. Also updates serial_passthrough.md to reference this implementation instead of only describing the pattern in the abstract. Signed-off-by: Phil-Engljaehringer <philipp.engljahringer@auterion.com> * fix: add send_serial_control function * docs: document mavlink_serial_bridge.py usage and limits Explain what the bridge supports and how to run it safely: the example connection string only listened on loopback, and --setup reboots the flight controller with motor outputs disabled without saying so. Restore the DShot ESC Serial Passthrough section, which was commented out until a bridge existed, and update the v1.18 and main release notes so v1.18 users know the bridge on main works with their firmware. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Hamish Willee <hamishwillee@gmail.com> * fix: removed duplicated port-map * fix: send_serial_control adjust padding * fix: set target_system and target_component only once * fix: implemented changes requested by alex * fix: implemented changes requested by hamish * fix: avoid indefinite loop waiting for heartbeat * fix: no chunking in send function needed * fix: add lock and avoid trailing 0x00 sent on shutdown * docs: explained SWITCH <device_id> feature in docs --------- Signed-off-by: Phil-Engljaehringer <philipp.engljahringer@auterion.com> Signed-off-by: Hamish Willee <hamishwillee@gmail.com> Co-authored-by: Hamish Willee <hamishwillee@gmail.com>