From 570c14294767dfd7d13a72db96b01ec26f65722d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=A9o=20Taillandier?= <123255318+Matheo-13@users.noreply.github.com> Date: Thu, 22 Oct 2026 00:29:19 +0200 Subject: [PATCH] feat(mavlink): use the MAV_SYS_STATUS_SENSOR_PROPULSION bit (#29192) * feat(mavlink): use the new MAV_SYS_STATUS_SENSOR_PROPULSION bit for reporting esc * feat(mavlink): report ESC health only on MAV_SYS_STATUS_SENSOR_PROPULSION ArduPilot, MAVProxy and QGroundControl treat MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS as safety switch state (enabled = safety off), and ArduPilot reports propulsion health on MAV_SYS_STATUS_SENSOR_PROPULSION. Stop overloading MOTOR_OUTPUTS with ESC health. QGroundControl only interprets MOTOR_OUTPUTS for ArduPilot, so this is non-breaking for it. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Hamish Willee * Apply suggestion from @hamishwillee * Apply suggestion from @hamishwillee --------- Signed-off-by: Hamish Willee Co-authored-by: Hamish Willee --- docs/en/releases/main.md | 3 ++- src/modules/mavlink/streams/SYS_STATUS.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en/releases/main.md b/docs/en/releases/main.md index df622700bef..80d1dd5ce6b 100644 --- a/docs/en/releases/main.md +++ b/docs/en/releases/main.md @@ -125,7 +125,8 @@ Please continue reading for [upgrade instructions](#upgrade-guide). ### MAVLink -- TBD +- ESC/motor health is now reported in [SYS_STATUS](https://mavlink.io/en/messages/common.html#SYS_STATUS) using the [MAV_SYS_STATUS_SENSOR_PROPULSION](https://mavlink.io/en/messages/common.html#MAV_SYS_STATUS_SENSOR_PROPULSION) bit instead of [MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS](https://mavlink.io/en/messages/common.html#MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS). + ([PX4-Autopilot#29192](https://github.com/PX4/PX4-Autopilot/pull/29192)). ### RC diff --git a/src/modules/mavlink/streams/SYS_STATUS.hpp b/src/modules/mavlink/streams/SYS_STATUS.hpp index 8d41fefdff0..a038b112c5b 100644 --- a/src/modules/mavlink/streams/SYS_STATUS.hpp +++ b/src/modules/mavlink/streams/SYS_STATUS.hpp @@ -142,7 +142,7 @@ private: } fillOutComponent(health_report, MAV_SYS_STATUS_SENSOR_BATTERY, health_component_t::battery, msg); - fillOutComponent(health_report, MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS, health_component_t::motors_escs, msg); + fillOutComponent(health_report, MAV_SYS_STATUS_SENSOR_PROPULSION, health_component_t::motors_escs, msg); fillOutComponent(health_report, MAV_SYS_STATUS_RECOVERY_SYSTEM, health_component_t::parachute, msg); fillOutComponent(health_report, MAV_SYS_STATUS_SENSOR_3D_ACCEL, health_component_t::accel, msg); fillOutComponent(health_report, MAV_SYS_STATUS_SENSOR_3D_GYRO, health_component_t::gyro, msg);