From 7c1d37f3749c386de96976fc03b55f36c0b130c1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 7 Aug 2024 13:17:22 +1000 Subject: [PATCH] AP_VisualOdom: use GCS_SEND_TEXT rather than gcs().send_text Co-authored-by: muramura --- libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp b/libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp index c26bd38b71..744fac017b 100644 --- a/libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp +++ b/libraries/AP_VisualOdom/AP_VisualOdom_IntelT265.cpp @@ -192,7 +192,7 @@ void AP_VisualOdom_IntelT265::align_yaw(const Vector3f &position, const Quaterni // trim yaw by difference between ahrs and sensor yaw const float yaw_trim_orig = _yaw_trim; _yaw_trim = wrap_2PI(yaw_rad - sens_yaw); - gcs().send_text(MAV_SEVERITY_INFO, "VisOdom: yaw shifted %d to %d deg", + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "VisOdom: yaw shifted %d to %d deg", (int)degrees(_yaw_trim - yaw_trim_orig), (int)wrap_360(degrees(sens_yaw + _yaw_trim))); @@ -349,7 +349,7 @@ void AP_VisualOdom_IntelT265::handle_voxl_camera_reset_jump(const Vector3f &sens } // warng user of reset - gcs().send_text(MAV_SEVERITY_WARNING, "VisOdom: reset"); + GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "VisOdom: reset"); // align sensor yaw to match current yaw estimate align_yaw_to_ahrs(sensor_pos, sensor_att);