ArduCopter: use static method to construct AP_LandingGear

This commit is contained in:
Lucas De Marchi 2017-08-29 16:57:49 -07:00 committed by Francisco Ferreira
parent beabccf9ef
commit 70d8a08626
1 changed files with 1 additions and 1 deletions

View File

@ -580,7 +580,7 @@ private:
#endif
// Landing Gear Controller
AP_LandingGear landinggear;
AP_LandingGear landinggear = AP_LandingGear::create();
// terrain handling
#if AP_TERRAIN_AVAILABLE && AC_TERRAIN