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 authored and peterbarker committed Sep 11, 2024
1 parent ef5e3c5 commit 4b6a357
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 4b6a357

Please sign in to comment.