AP_Motors: helper function to determine when heli is in autorotation

This commit is contained in:
Bill Geyer 2024-03-20 11:33:03 -04:00 committed by Randy Mackay
parent 0de2d6d482
commit a19b72e895
1 changed files with 4 additions and 1 deletions

View File

@ -133,6 +133,9 @@ public:
// set_in_autorotation - allows main code to set when aircraft is in autorotation. // set_in_autorotation - allows main code to set when aircraft is in autorotation.
void set_in_autorotation(bool autorotation) { _heliflags.in_autorotation = autorotation; } void set_in_autorotation(bool autorotation) { _heliflags.in_autorotation = autorotation; }
// 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 // 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; } void set_enable_bailout(bool bailout) { _heliflags.enable_bailout = bailout; }