mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: retrieve capabilities from HAL
This commit is contained in:
parent
66b0b5c7d6
commit
f08c34fe73
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue