From 4eba87d040528877860139116198838b547bd5a8 Mon Sep 17 00:00:00 2001 From: Gone4Dirt Date: Wed, 7 Aug 2024 20:56:54 +0100 Subject: [PATCH] Blimp: Remove previous flight mode --- Blimp/Blimp.h | 1 - Blimp/mode.cpp | 3 --- 2 files changed, 4 deletions(-) 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;