Copter: move SmartRTLState to SmartRTL class

This commit is contained in:
Pierre Kancir 2021-01-26 12:37:55 +01:00 committed by Andrew Tridgell
parent 07632dc7ed
commit 3fb73d7e93
2 changed files with 9 additions and 9 deletions

View File

@ -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,

View File

@ -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"; }