From a19b72e895524574e3b31daf9678d8eec33b397a Mon Sep 17 00:00:00 2001 From: Bill Geyer Date: Wed, 20 Mar 2024 11:33:03 -0400 Subject: [PATCH] AP_Motors: helper function to determine when heli is in autorotation --- libraries/AP_Motors/AP_MotorsHeli.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Motors/AP_MotorsHeli.h b/libraries/AP_Motors/AP_MotorsHeli.h index 472e86d01a..31189f5e21 100644 --- a/libraries/AP_Motors/AP_MotorsHeli.h +++ b/libraries/AP_Motors/AP_MotorsHeli.h @@ -133,7 +133,10 @@ public: // set_in_autorotation - allows main code to set when aircraft is in autorotation. void set_in_autorotation(bool autorotation) { _heliflags.in_autorotation = autorotation; } - // set_enable_bailout - allows main code to set when RSC can immediately ramp engine instantly + // get_in_autorotation - allows main code to determine when aircraft is in autorotation. + bool get_in_autorotation() { return _heliflags.in_autorotation; } + +// set_enable_bailout - allows main code to set when RSC can immediately ramp engine instantly void set_enable_bailout(bool bailout) { _heliflags.enable_bailout = bailout; } // set land complete flag