From caf1e33f179dd4197e5723bc660a81ed6b400419 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 12 Jan 2024 23:40:24 +1100 Subject: [PATCH] GCS_MAVLink: make AHRS attitude member variables private --- libraries/GCS_MAVLink/GCS_Common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 913e9fe47b..63e2424eb9 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -5443,9 +5443,9 @@ void GCS_MAVLINK::send_attitude() const mavlink_msg_attitude_send( chan, AP_HAL::millis(), - ahrs.roll, - ahrs.pitch, - ahrs.yaw, + ahrs.get_roll(), + ahrs.get_pitch(), + ahrs.get_yaw(), omega.x, omega.y, omega.z);