diff --git a/Blimp/Blimp.h b/Blimp/Blimp.h index 086f17f44a..aa4d2e449d 100644 --- a/Blimp/Blimp.h +++ b/Blimp/Blimp.h @@ -168,7 +168,6 @@ private: // There are multiple states defined such as STABILIZE, ACRO, Mode::Number control_mode; ModeReason control_mode_reason = ModeReason::UNKNOWN; - Mode::Number prev_control_mode; RCMapper rcmap; diff --git a/Blimp/mode.cpp b/Blimp/mode.cpp index 849b4af275..dd7299d4cf 100644 --- a/Blimp/mode.cpp +++ b/Blimp/mode.cpp @@ -102,9 +102,6 @@ bool Blimp::set_mode(Mode::Number mode, ModeReason reason) // perform any cleanup required by previous flight mode exit_mode(flightmode, new_flightmode); - // store previous flight mode (only used by tradeheli's autorotation) - prev_control_mode = control_mode; - // update flight mode flightmode = new_flightmode; control_mode = mode;