Skip to content

Commit

Permalink
Blimp: Remove previous flight mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKear committed Sep 4, 2024
1 parent cf60ee0 commit 66c4200
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion Blimp/Blimp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 0 additions & 3 deletions Blimp/mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66c4200

Please sign in to comment.