Blimp: Remove previous flight mode

This commit is contained in:
Gone4Dirt 2024-08-07 20:56:54 +01:00 committed by Randy Mackay
parent 3dea20e5d6
commit 4eba87d040
2 changed files with 0 additions and 4 deletions

View File

@ -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;

View File

@ -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;