Rover: move control_mode_reason up to AP_Vehicle

This commit is contained in:
Peter Barker 2021-02-03 10:48:15 +11:00 committed by Andrew Tridgell
parent 2b890eda53
commit 8d38a627a9

View File

@ -199,7 +199,6 @@ private:
// This is the state of the flight control system
// There are multiple states defined such as MANUAL, AUTO, ...
Mode *control_mode;
ModeReason control_mode_reason = ModeReason::UNKNOWN;
// Used to maintain the state of the previous control switch position
// This is set to -1 when we need to re-read the switch