mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 07:57:35 +08:00
mission_block: acquire gimbal control also when the command from the gimbal
protocol v2 is parsed
This commit is contained in:
committed by
fury1895
parent
f4948d1404
commit
1b3494fabd
@@ -590,7 +590,7 @@ MissionBlock::issue_command(const mission_item_s &item)
|
||||
} else {
|
||||
|
||||
// This is to support legacy DO_MOUNT_CONTROL as part of a mission.
|
||||
if (item.nav_cmd == NAV_CMD_DO_MOUNT_CONTROL) {
|
||||
if (item.nav_cmd == NAV_CMD_DO_MOUNT_CONTROL || item.nav_cmd == NAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW) {
|
||||
_navigator->acquire_gimbal_control();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user