mirror of https://github.com/ArduPilot/ardupilot
Plane: avoidance no longer takes ahrs in constructor
This commit is contained in:
parent
9412075b9c
commit
38e303389b
|
@ -673,7 +673,7 @@ private:
|
||||||
AP_ADSB adsb;
|
AP_ADSB adsb;
|
||||||
|
|
||||||
// avoidance of adsb enabled vehicles (normally manned vheicles)
|
// avoidance of adsb enabled vehicles (normally manned vheicles)
|
||||||
AP_Avoidance_Plane avoidance_adsb{ahrs, adsb};
|
AP_Avoidance_Plane avoidance_adsb{adsb};
|
||||||
|
|
||||||
// Outback Challenge Failsafe Support
|
// Outback Challenge Failsafe Support
|
||||||
#if ADVANCED_FAILSAFE == ENABLED
|
#if ADVANCED_FAILSAFE == ENABLED
|
||||||
|
|
|
@ -8,10 +8,8 @@
|
||||||
// functionality - for example, not doing anything while landed.
|
// functionality - for example, not doing anything while landed.
|
||||||
class AP_Avoidance_Plane : public AP_Avoidance {
|
class AP_Avoidance_Plane : public AP_Avoidance {
|
||||||
public:
|
public:
|
||||||
AP_Avoidance_Plane(AP_AHRS &ahrs, class AP_ADSB &adsb)
|
|
||||||
: AP_Avoidance(ahrs, adsb)
|
using AP_Avoidance::AP_Avoidance;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Do not allow copies */
|
/* Do not allow copies */
|
||||||
AP_Avoidance_Plane(const AP_Avoidance_Plane &other) = delete;
|
AP_Avoidance_Plane(const AP_Avoidance_Plane &other) = delete;
|
||||||
|
|
Loading…
Reference in New Issue