From 04fdfea74a2c14de9500d22e0da04b8fdda5725b Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 19 Apr 2022 23:45:10 +0100 Subject: [PATCH] AP_AHRS_View: add method to get pitch trim and note on rotation --- libraries/AP_AHRS/AP_AHRS_View.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_AHRS/AP_AHRS_View.h b/libraries/AP_AHRS/AP_AHRS_View.h index 36fcb85a8e820..2302f3c14307f 100644 --- a/libraries/AP_AHRS/AP_AHRS_View.h +++ b/libraries/AP_AHRS/AP_AHRS_View.h @@ -187,10 +187,14 @@ class AP_AHRS_View // get current rotation + // note that this may not be the rotation were actually using, see _pitch_trim_deg enum Rotation get_rotation(void) const { return rotation; } + // get pitch trim (deg) + float get_pitch_trim() const { return _pitch_trim_deg; } + private: const enum Rotation rotation; AP_AHRS &ahrs;