global: use static method to construct AP_Avoidance_*

This commit is contained in:
Lucas De Marchi 2017-08-29 17:33:57 -07:00 committed by Francisco Ferreira
parent 119e82f32e
commit 6781a44046
2 changed files with 2 additions and 2 deletions

View File

@ -601,7 +601,7 @@ private:
AP_ADSB adsb = AP_ADSB::create(ahrs);
// avoidance of adsb enabled vehicles (normally manned vheicles)
AP_Avoidance_Copter avoidance_adsb{ahrs, adsb};
AP_Avoidance_Copter avoidance_adsb = AP_Avoidance_Copter::create(ahrs, adsb);
// use this to prevent recursion during sensor init
bool in_mavlink_delay;

View File

@ -625,7 +625,7 @@ private:
AP_ADSB adsb = AP_ADSB::create(ahrs);
// avoidance of adsb enabled vehicles (normally manned vheicles)
AP_Avoidance_Plane avoidance_adsb {ahrs, adsb};
AP_Avoidance_Plane avoidance_adsb = AP_Avoidance_Plane::create(ahrs, adsb);
// Outback Challenge Failsafe Support
AP_AdvancedFailsafe_Plane afs {mission, barometer, gps, rcmap};