mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
25 lines
666 B
C++
25 lines
666 B
C++
class FlightMode_AVOID_ADSB : protected FlightMode_GUIDED {
|
|
|
|
public:
|
|
|
|
FlightMode_AVOID_ADSB(Copter &copter) :
|
|
Copter::FlightMode_GUIDED(copter) { }
|
|
|
|
bool init(bool ignore_checks) override;
|
|
void run() override; // should be called at 100hz or more
|
|
|
|
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 is_autopilot() const override { return true; }
|
|
|
|
bool set_velocity(const Vector3f& velocity_neu);
|
|
|
|
protected:
|
|
|
|
const char *name() const override { return "AVOID_ADSB"; }
|
|
|
|
private:
|
|
|
|
};
|