diff --git a/ArduCopter/Copter.cpp b/ArduCopter/Copter.cpp index 0e50c5d00d..45bf91caa8 100644 --- a/ArduCopter/Copter.cpp +++ b/ArduCopter/Copter.cpp @@ -66,9 +66,6 @@ Copter::Copter(void) mainLoop_count(0), rtl_loiter_start_time(0), auto_trim_counter(0), -#if PARACHUTE == ENABLED - parachute(relay), -#endif #if AP_TERRAIN_AVAILABLE && AC_TERRAIN terrain(ahrs, mission, rally), #endif diff --git a/ArduCopter/Copter.h b/ArduCopter/Copter.h index e5c42000d8..38f4308748 100644 --- a/ArduCopter/Copter.h +++ b/ArduCopter/Copter.h @@ -576,7 +576,7 @@ private: // Parachute release #if PARACHUTE == ENABLED - AP_Parachute parachute; + AP_Parachute parachute = AP_Parachute::create(relay); #endif // Landing Gear Controller diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index 08d633c543..a3ca2b46f4 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -606,7 +606,7 @@ private: #if PARACHUTE == ENABLED - AP_Parachute parachute {relay}; + AP_Parachute parachute = AP_Parachute::create(relay); #endif // terrain handling diff --git a/libraries/AP_Parachute/examples/AP_Parachute_test/AP_Parachute_test.cpp b/libraries/AP_Parachute/examples/AP_Parachute_test/AP_Parachute_test.cpp index a3789452f8..d0dcd652f5 100644 --- a/libraries/AP_Parachute/examples/AP_Parachute_test/AP_Parachute_test.cpp +++ b/libraries/AP_Parachute/examples/AP_Parachute_test/AP_Parachute_test.cpp @@ -22,7 +22,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); static AP_Relay relay = AP_Relay::create(); // Parachute -AP_Parachute parachute(relay); +static AP_Parachute parachute = AP_Parachute::create(relay); void setup() {