mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -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),
|
||||
rtl_loiter_start_time(0),
|
||||
auto_trim_counter(0),
|
||||
#if SPRAYER == ENABLED
|
||||
sprayer(&inertial_nav),
|
||||
#endif
|
||||
#if PARACHUTE == ENABLED
|
||||
parachute(relay),
|
||||
#endif
|
||||
|
@ -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…
Reference in New Issue
Block a user