Compare commits

...

1 Commits

Author SHA1 Message Date
Martina Rivizzigno f6a2023b13 mission_block: acquire gimbal control also when the command from the gimbal
protocol v2 is parsed
2023-01-31 06:46:23 +01:00
+2 -2
View File
@@ -589,8 +589,8 @@ 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) {
// This is to support legacy DO_MOUNT_CONTROL and mavlink gimbal protocol v2 DO_GIMBAL_MANAGER_PITCHYAW as part of a mission.
if (item.nav_cmd == NAV_CMD_DO_MOUNT_CONTROL || item.nav_cmd == NAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW) {
_navigator->acquire_gimbal_control();
}