diff --git a/libraries/GCS_MAVLink/GCS.h b/libraries/GCS_MAVLink/GCS.h index d769cfe35b..81f222a184 100644 --- a/libraries/GCS_MAVLink/GCS.h +++ b/libraries/GCS_MAVLink/GCS.h @@ -138,7 +138,7 @@ public: #if AP_AHRS_NAVEKF_AVAILABLE void send_opticalflow(AP_AHRS_NavEKF &ahrs, const OpticalFlow &optflow); #endif - void send_autopilot_version(uint64_t capabilities = 0) const; + void send_autopilot_version() const; void send_local_position(const AP_AHRS &ahrs) const; void send_vibration(const AP_InertialSensor &ins) const; void send_mission_item_reached(uint16_t seq) const; diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index f60f217724..d6fc4bda44 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1245,7 +1245,7 @@ void GCS_MAVLINK::send_opticalflow(AP_AHRS_NavEKF &ahrs, const OpticalFlow &optf /* send AUTOPILOT_VERSION packet */ -void GCS_MAVLINK::send_autopilot_version(uint64_t capabilities) const +void GCS_MAVLINK::send_autopilot_version() const { uint32_t flight_sw_version = 0; uint32_t middleware_sw_version = 0; @@ -1278,7 +1278,7 @@ void GCS_MAVLINK::send_autopilot_version(uint64_t capabilities) const mavlink_msg_autopilot_version_send( chan, - capabilities, + hal.util->get_capabilities(), flight_sw_version, middleware_sw_version, os_sw_version,