Browse Source

ArduCopter: use static method to construct AC_Sprayer

mission-4.1.18
Lucas De Marchi 8 years ago committed by Francisco Ferreira
parent
commit
57bbb2e1d9
  1. 3
      ArduCopter/Copter.cpp
  2. 2
      ArduCopter/Copter.h

3
ArduCopter/Copter.cpp

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

2
ArduCopter/Copter.h

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

Loading…
Cancel
Save