mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Extract the repeated `offboard_control_mode_s` population logic into a shared `fill_offboard_control_mode()` helper in MavlinkReceiver and, similar to `fill_thrust()`, reuse it in both local and global position target handlers. Reduces the code duplication without changing any behavior. Signed-off-by: Onur Özkan <work@onurozkan.dev>