mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
global: use static method to construct AP_ADSB
This commit is contained in:
parent
cce51ec1c3
commit
6d009cdf6e
@ -598,7 +598,7 @@ private:
|
||||
AC_InputManager_Heli input_manager = AC_InputManager_Heli::create();
|
||||
#endif
|
||||
|
||||
AP_ADSB adsb {ahrs};
|
||||
AP_ADSB adsb = AP_ADSB::create(ahrs);
|
||||
|
||||
// avoidance of adsb enabled vehicles (normally manned vheicles)
|
||||
AP_Avoidance_Copter avoidance_adsb{ahrs, adsb};
|
||||
|
@ -622,7 +622,7 @@ private:
|
||||
FUNCTOR_BIND_MEMBER(&Plane::disarm_if_autoland_complete, void),
|
||||
FUNCTOR_BIND_MEMBER(&Plane::update_flight_stage, void)};
|
||||
|
||||
AP_ADSB adsb {ahrs};
|
||||
AP_ADSB adsb = AP_ADSB::create(ahrs);
|
||||
|
||||
// avoidance of adsb enabled vehicles (normally manned vheicles)
|
||||
AP_Avoidance_Plane avoidance_adsb {ahrs, adsb};
|
||||
|
Loading…
Reference in New Issue
Block a user