Browse Source

ArduCopter: use static method to construct AC_InputManager

master
Lucas De Marchi 8 years ago committed by Francisco Ferreira
parent
commit
1263e20a0d
  1. 4
      ArduCopter/Copter.cpp
  2. 5
      ArduCopter/Copter.h

4
ArduCopter/Copter.cpp

@ -66,10 +66,6 @@ Copter::Copter(void) @@ -66,10 +66,6 @@ Copter::Copter(void)
mainLoop_count(0),
rtl_loiter_start_time(0),
auto_trim_counter(0),
#if FRAME_CONFIG == HELI_FRAME
// ToDo: Input Manager is only used by Heli for 3.3, but will be used by all frames for 3.4
input_manager(),
#endif
in_mavlink_delay(false),
param_loader(var_info)
{

5
ArduCopter/Copter.h

@ -593,10 +593,9 @@ private: @@ -593,10 +593,9 @@ private:
#endif
// Pilot Input Management Library
// Only used for Helicopter for AC3.3, to be expanded to include Multirotor
// child class for AC3.4
// Only used for Helicopter for now
#if FRAME_CONFIG == HELI_FRAME
AC_InputManager_Heli input_manager;
AC_InputManager_Heli input_manager = AC_InputManager_Heli::create();
#endif
AP_ADSB adsb {ahrs};

Loading…
Cancel
Save