From bcf6578d56717588c2fe44e29d2f814fd563e361 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 13 Jan 2024 01:02:12 +1100 Subject: [PATCH] AP_Module: make AHRS attitude member variables private --- libraries/AP_Module/AP_Module.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Module/AP_Module.cpp b/libraries/AP_Module/AP_Module.cpp index 6d740ecce59..3bad1d59ef8 100644 --- a/libraries/AP_Module/AP_Module.cpp +++ b/libraries/AP_Module/AP_Module.cpp @@ -165,9 +165,9 @@ void AP_Module::call_hook_AHRS_update(const AP_AHRS &ahrs) state.quat[2] = q[2]; state.quat[3] = q[3]; - state.eulers[0] = ahrs.roll; - state.eulers[1] = ahrs.pitch; - state.eulers[2] = ahrs.yaw; + state.eulers[0] = ahrs.get_roll(); + state.eulers[1] = ahrs.get_pitch(); + state.eulers[2] = ahrs.get_yaw(); Location loc; if (ahrs.get_origin(loc)) {