mirror of https://github.com/ArduPilot/ardupilot
Blimp: Remove previous flight mode
This commit is contained in:
parent
3dea20e5d6
commit
4eba87d040
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue