ArduCopter: use static method to construct AC_Sprayer

This commit is contained in:
Lucas De Marchi 2017-08-29 16:50:01 -07:00 committed by Francisco Ferreira
parent e1733a5a99
commit 57bbb2e1d9
2 changed files with 1 additions and 4 deletions

View File

@ -66,9 +66,6 @@ Copter::Copter(void)
mainLoop_count(0), mainLoop_count(0),
rtl_loiter_start_time(0), rtl_loiter_start_time(0),
auto_trim_counter(0), auto_trim_counter(0),
#if SPRAYER == ENABLED
sprayer(&inertial_nav),
#endif
#if PARACHUTE == ENABLED #if PARACHUTE == ENABLED
parachute(relay), parachute(relay),
#endif #endif

View File

@ -571,7 +571,7 @@ private:
// Crop Sprayer // Crop Sprayer
#if SPRAYER == ENABLED #if SPRAYER == ENABLED
AC_Sprayer sprayer; AC_Sprayer sprayer = AC_Sprayer::create(&inertial_nav);
#endif #endif
// Parachute release // Parachute release