mirror of https://github.com/ArduPilot/ardupilot
Copter: move SmartRTLState to SmartRTL class
This commit is contained in:
parent
07632dc7ed
commit
3fb73d7e93
|
@ -91,15 +91,6 @@ enum class AirMode {
|
|||
AIRMODE_ENABLED,
|
||||
};
|
||||
|
||||
// Safe RTL states
|
||||
enum class SmartRTLState : uint8_t {
|
||||
WAIT_FOR_PATH_CLEANUP,
|
||||
PATH_FOLLOW,
|
||||
PRELAND_POSITION,
|
||||
DESCEND,
|
||||
LAND
|
||||
};
|
||||
|
||||
enum PayloadPlaceStateType {
|
||||
PayloadPlaceStateType_FlyToLocation,
|
||||
PayloadPlaceStateType_Calibrating_Hover_Start,
|
||||
|
|
|
@ -1237,6 +1237,15 @@ public:
|
|||
|
||||
bool is_landing() const override;
|
||||
|
||||
// Safe RTL states
|
||||
enum class SmartRTLState : uint8_t {
|
||||
WAIT_FOR_PATH_CLEANUP,
|
||||
PATH_FOLLOW,
|
||||
PRELAND_POSITION,
|
||||
DESCEND,
|
||||
LAND
|
||||
};
|
||||
|
||||
protected:
|
||||
|
||||
const char *name() const override { return "SMARTRTL"; }
|
||||
|
|
Loading…
Reference in New Issue