mavlink: accept broadcast commands (#26311)

I think - per MAVLink spec - PX4 ought to accept broadcast commands
which are aimed at system ID 0, so anyone/all.
This commit is contained in:
Julian Oes 2026-01-23 06:55:34 +13:00 committed by GitHub
parent 9cf07c2452
commit aed8a78c1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -450,8 +450,8 @@ MavlinkReceiver::evaluate_target_ok(int command, int target_system, int target_c
break;
default:
target_ok = (target_system == mavlink_system.sysid) && ((target_component == mavlink_system.compid)
|| (target_component == MAV_COMP_ID_ALL));
target_ok = ((target_system == 0) || (target_system == mavlink_system.sysid))
&& ((target_component == mavlink_system.compid) || (target_component == MAV_COMP_ID_ALL));
break;
}