mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
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 <hamishwillee@gmail.com> * Apply suggestion from @hamishwillee * Apply suggestion from @hamishwillee --------- Signed-off-by: Hamish Willee <hamishwillee@gmail.com> Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
This commit is contained in:
1 parent
ddc9474819
commit
570c142947
2 files changed
+3
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user