mirror of https://github.com/ArduPilot/ardupilot
global: use static method to construct AP_Avoidance_*
This commit is contained in:
parent
119e82f32e
commit
6781a44046
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue