|
|
|
@ -55,7 +55,7 @@ public:
@@ -55,7 +55,7 @@ public:
|
|
|
|
|
virtual void run() = 0; |
|
|
|
|
virtual bool requires_GPS() const = 0; |
|
|
|
|
virtual bool has_manual_throttle() const = 0; |
|
|
|
|
virtual bool allows_arming(bool from_gcs) const = 0; |
|
|
|
|
virtual bool allows_arming(AP_Arming::Method method) const = 0; |
|
|
|
|
virtual bool is_autopilot() const { return false; } |
|
|
|
|
virtual bool has_user_takeoff(bool must_navigate) const { return false; } |
|
|
|
|
virtual bool in_guided_mode() const { return false; } |
|
|
|
@ -272,7 +272,7 @@ public:
@@ -272,7 +272,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return true; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
bool init(bool ignore_checks) override; |
|
|
|
|
void exit(); |
|
|
|
@ -324,7 +324,7 @@ public:
@@ -324,7 +324,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
bool has_user_takeoff(bool must_navigate) const override { |
|
|
|
|
return !must_navigate; |
|
|
|
@ -354,7 +354,7 @@ public:
@@ -354,7 +354,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override; |
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
bool in_guided_mode() const override { return mode() == Auto_NavGuided; } |
|
|
|
|
|
|
|
|
@ -558,7 +558,7 @@ public:
@@ -558,7 +558,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; } |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; } |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
|
|
|
|
|
void save_tuning_gains(); |
|
|
|
@ -585,7 +585,7 @@ public:
@@ -585,7 +585,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
|
|
|
|
|
void timeout_to_loiter_ms(uint32_t timeout_ms); |
|
|
|
@ -617,7 +617,7 @@ public:
@@ -617,7 +617,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; }; |
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
@ -648,7 +648,7 @@ public:
@@ -648,7 +648,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
@ -675,7 +675,7 @@ public:
@@ -675,7 +675,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
@ -721,7 +721,7 @@ public:
@@ -721,7 +721,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
bool has_user_takeoff(bool must_navigate) const override { |
|
|
|
|
return !must_navigate; |
|
|
|
@ -805,7 +805,7 @@ public:
@@ -805,7 +805,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override; |
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
bool has_user_takeoff(bool must_navigate) const override { return true; } |
|
|
|
|
bool in_guided_mode() const override { return true; } |
|
|
|
@ -905,7 +905,7 @@ public:
@@ -905,7 +905,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; }; |
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
|
|
|
|
|
bool is_landing() const override { return true; }; |
|
|
|
@ -946,7 +946,7 @@ public:
@@ -946,7 +946,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
bool has_user_takeoff(bool must_navigate) const override { return true; } |
|
|
|
|
bool allows_autotune() const override { return true; } |
|
|
|
@ -989,7 +989,7 @@ public:
@@ -989,7 +989,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
bool has_user_takeoff(bool must_navigate) const override { return true; } |
|
|
|
|
bool allows_autotune() const override { return true; } |
|
|
|
@ -1074,7 +1074,7 @@ public:
@@ -1074,7 +1074,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; }; |
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
|
|
|
|
|
bool requires_terrain_failsafe() const override { return true; } |
|
|
|
@ -1181,7 +1181,7 @@ public:
@@ -1181,7 +1181,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; } |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; } |
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
|
|
|
|
|
void save_position(); |
|
|
|
@ -1227,7 +1227,7 @@ public:
@@ -1227,7 +1227,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
bool has_user_takeoff(bool must_navigate) const override { |
|
|
|
|
return !must_navigate; |
|
|
|
@ -1254,7 +1254,7 @@ public:
@@ -1254,7 +1254,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return true; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
bool allows_save_trim() const override { return true; } |
|
|
|
|
bool allows_autotune() const override { return true; } |
|
|
|
@ -1297,7 +1297,7 @@ public:
@@ -1297,7 +1297,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return true; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
bool logs_attitude() const override { return true; } |
|
|
|
|
|
|
|
|
@ -1366,7 +1366,7 @@ public:
@@ -1366,7 +1366,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; }; |
|
|
|
|
bool is_autopilot() const override { return false; } |
|
|
|
|
|
|
|
|
|
// Throw types
|
|
|
|
@ -1423,7 +1423,7 @@ public:
@@ -1423,7 +1423,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; } |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; } |
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
|
|
|
|
|
bool set_velocity(const Vector3f& velocity_neu); |
|
|
|
@ -1451,7 +1451,7 @@ public:
@@ -1451,7 +1451,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; } |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; } |
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
@ -1499,7 +1499,7 @@ public:
@@ -1499,7 +1499,7 @@ public:
|
|
|
|
|
|
|
|
|
|
bool requires_GPS() const override { return true; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return true; } |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return true; } |
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
|
|
|
|
|
// save current position as A or B. If both A and B have been saved move to the one specified
|
|
|
|
@ -1575,7 +1575,7 @@ public:
@@ -1575,7 +1575,7 @@ public:
|
|
|
|
|
bool is_autopilot() const override { return true; } |
|
|
|
|
bool requires_GPS() const override { return false; } |
|
|
|
|
bool has_manual_throttle() const override { return false; } |
|
|
|
|
bool allows_arming(bool from_gcs) const override { return false; }; |
|
|
|
|
bool allows_arming(AP_Arming::Method method) const override { return false; }; |
|
|
|
|
|
|
|
|
|
static const struct AP_Param::GroupInfo var_info[]; |
|
|
|
|
|
|
|
|
|