From 66c4200f042409532f4f4c9892298470a671d656 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 086f17f44a552c..aa4d2e449d3cc4 100644 --- a/Blimp/Blimp.h +++ b/Blimp/Blimp.h @@ -168,7 +168,6 @@ class Blimp : public AP_Vehicle // 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 849b4af27568d1..dd7299d4cf29d5 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;