mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Mount: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
This commit is contained in:
parent
78afaebe55
commit
496bbde384
@ -202,7 +202,7 @@ void AP_Mount_Gremsy::handle_gimbal_device_information(const mavlink_message_t &
|
|||||||
const uint8_t fw_ver_build = (info.firmware_version & 0xFF000000) >> 24;
|
const uint8_t fw_ver_build = (info.firmware_version & 0xFF000000) >> 24;
|
||||||
|
|
||||||
// display gimbal info to user
|
// display gimbal info to user
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "Mount: %s %s fw:%u.%u.%u.%u",
|
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Mount: %s %s fw:%u.%u.%u.%u",
|
||||||
info.vendor_name,
|
info.vendor_name,
|
||||||
info.model_name,
|
info.model_name,
|
||||||
(unsigned)fw_ver_major,
|
(unsigned)fw_ver_major,
|
||||||
|
@ -128,7 +128,7 @@ void AP_Mount_SToRM32::find_gimbal()
|
|||||||
if (GCS_MAVLINK::find_by_mavtype_and_compid(MAV_TYPE_GIMBAL, compid, _sysid, _chan)) {
|
if (GCS_MAVLINK::find_by_mavtype_and_compid(MAV_TYPE_GIMBAL, compid, _sysid, _chan)) {
|
||||||
_compid = compid;
|
_compid = compid;
|
||||||
_initialised = true;
|
_initialised = true;
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "Mount: SToRM32");
|
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Mount: SToRM32");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user