Skip to content

Commit

Permalink
Copter: Heli: Prevent mode change to autorotation unless armed.
Browse files Browse the repository at this point in the history
MattKear committed Feb 22, 2024
1 parent 3b907af commit 86cb111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/heli.cpp
Original file line number Diff line number Diff line change
@@ -210,7 +210,7 @@ void Copter::heli_update_autorotation()
#endif

// check if flying and interlock disengaged
if (!ap.land_complete && !motors->get_interlock()) {
if (!ap.land_complete && !motors->get_interlock() && motors->armed()) {
#if MODE_AUTOROTATE_ENABLED == ENABLED
if (g2.arot.is_enable()) {
if (!flightmode->has_manual_throttle()) {

0 comments on commit 86cb111

Please sign in to comment.