mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
ArduCopter: use static method to construct AC_Sprayer
This commit is contained in:
parent
e1733a5a99
commit
57bbb2e1d9
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user