Skip to content

Commit

Permalink
Copter: handle_command_mount override accepts msg
Browse files Browse the repository at this point in the history
mavlink msg required to extra caller's sysid/compid
  • Loading branch information
rmackay9 committed May 17, 2023
1 parent e4428f5 commit dec9584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ArduCopter/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_int_packet(const mavlink_command_i
}

#if HAL_MOUNT_ENABLED
MAV_RESULT GCS_MAVLINK_Copter::handle_command_mount(const mavlink_command_long_t &packet)
MAV_RESULT GCS_MAVLINK_Copter::handle_command_mount(const mavlink_command_long_t &packet, const mavlink_message_t &msg)
{
switch (packet.command) {
case MAV_CMD_DO_MOUNT_CONTROL:
Expand All @@ -775,7 +775,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_mount(const mavlink_command_long_t
default:
break;
}
return GCS_MAVLINK::handle_command_mount(packet);
return GCS_MAVLINK::handle_command_mount(packet, msg);
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion ArduCopter/GCS_Mavlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GCS_MAVLINK_Copter : public GCS_MAVLINK
MAV_RESULT handle_command_do_set_roi(const Location &roi_loc) override;
MAV_RESULT handle_preflight_reboot(const mavlink_command_long_t &packet, const mavlink_message_t &msg) override;
#if HAL_MOUNT_ENABLED
MAV_RESULT handle_command_mount(const mavlink_command_long_t &packet) override;
MAV_RESULT handle_command_mount(const mavlink_command_long_t &packet, const mavlink_message_t &msg) override;
#endif
MAV_RESULT handle_command_int_packet(const mavlink_command_int_t &packet) override;
MAV_RESULT handle_command_long_packet(const mavlink_command_long_t &packet) override;
Expand Down

0 comments on commit dec9584

Please sign in to comment.