ArduCopter: add support for mavlink in-progress message

This commit is contained in:
Peter Barker 2022-12-08 17:47:13 +11:00 committed by Peter Barker
parent 2f15b79619
commit 9e00b8eeac
2 changed files with 3 additions and 3 deletions

View File

@ -645,14 +645,14 @@ void GCS_MAVLINK_Copter::handle_landing_target(const mavlink_landing_target_t &p
#endif
}
MAV_RESULT GCS_MAVLINK_Copter::_handle_command_preflight_calibration(const mavlink_command_long_t &packet)
MAV_RESULT GCS_MAVLINK_Copter::_handle_command_preflight_calibration(const mavlink_command_long_t &packet, const mavlink_message_t &msg)
{
if (is_equal(packet.param6,1.0f)) {
// compassmot calibration
return copter.mavlink_compassmot(*this);
}
return GCS_MAVLINK::_handle_command_preflight_calibration(packet);
return GCS_MAVLINK::_handle_command_preflight_calibration(packet, msg);
}

View File

@ -21,7 +21,7 @@ protected:
bool params_ready() const override;
void send_banner() override;
MAV_RESULT _handle_command_preflight_calibration(const mavlink_command_long_t &packet) override;
MAV_RESULT _handle_command_preflight_calibration(const mavlink_command_long_t &packet, const mavlink_message_t &msg) override;
void send_attitude_target() override;
void send_position_target_global_int() override;