Plane: avoidance no longer takes ahrs in constructor

This commit is contained in:
Peter Barker 2019-07-09 16:05:51 +10:00 committed by Andrew Tridgell
parent 9412075b9c
commit 38e303389b
2 changed files with 3 additions and 5 deletions

View File

@ -673,7 +673,7 @@ private:
AP_ADSB adsb;
// 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
#if ADVANCED_FAILSAFE == ENABLED

View File

@ -8,10 +8,8 @@
// functionality - for example, not doing anything while landed.
class AP_Avoidance_Plane : public AP_Avoidance {
public:
AP_Avoidance_Plane(AP_AHRS &ahrs, class AP_ADSB &adsb)
: AP_Avoidance(ahrs, adsb)
{
}
using AP_Avoidance::AP_Avoidance;
/* Do not allow copies */
AP_Avoidance_Plane(const AP_Avoidance_Plane &other) = delete;