Rover: 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 d92311381f
commit 75fd6cb630
2 changed files with 3 additions and 3 deletions

View File

@ -608,7 +608,7 @@ bool GCS_MAVLINK_Rover::handle_guided_request(AP_Mission::Mission_Command &cmd)
return rover.mode_guided.set_desired_location(cmd.content.location);
}
MAV_RESULT GCS_MAVLINK_Rover::_handle_command_preflight_calibration(const mavlink_command_long_t &packet)
MAV_RESULT GCS_MAVLINK_Rover::_handle_command_preflight_calibration(const mavlink_command_long_t &packet, const mavlink_message_t &msg)
{
if (is_equal(packet.param6, 1.0f)) {
if (rover.g2.windvane.start_direction_calibration()) {
@ -624,7 +624,7 @@ MAV_RESULT GCS_MAVLINK_Rover::_handle_command_preflight_calibration(const mavlin
}
}
return GCS_MAVLINK::_handle_command_preflight_calibration(packet);
return GCS_MAVLINK::_handle_command_preflight_calibration(packet, msg);
}
bool GCS_MAVLINK_Rover::set_home_to_current_location(bool _lock) {

View File

@ -15,7 +15,7 @@ protected:
uint8_t sysid_my_gcs() const override;
bool sysid_enforce() const 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;
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;
MAV_RESULT handle_command_int_do_reposition(const mavlink_command_int_t &packet);