mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
Rover: add support for mavlink in-progress message
This commit is contained in:
parent
d92311381f
commit
75fd6cb630
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user