#pragma once
#include <AP_Avoidance/AP_Avoidance.h>
#if AP_ADSB_AVOIDANCE_ENABLED
class AP_Avoidance_Plane : public AP_Avoidance {
public:
using AP_Avoidance::AP_Avoidance;
CLASS_NO_COPY(AP_Avoidance_Plane);
protected:
MAV_COLLISION_ACTION handle_avoidance(const AP_Avoidance::Obstacle *obstacle, MAV_COLLISION_ACTION requested_action) override;
void handle_recovery(RecoveryAction recovery_action) override;
bool check_flightmode(bool allow_mode_change);
bool handle_avoidance_vertical(const AP_Avoidance::Obstacle *obstacle, bool allow_mode_change, Location &new_loc);
bool handle_avoidance_horizontal(const AP_Avoidance::Obstacle *obstacle, bool allow_mode_change, Location &new_loc);
enum Mode::Number prev_control_mode_number = Mode::Number::RTL;
};
#endif