AP_Arming: move copter-specific code into Copter subclass

This commit is contained in:
Peter Barker 2018-06-20 17:16:34 +10:00 committed by Peter Barker
parent 576d1a145d
commit e3dc408295

View File

@ -88,11 +88,6 @@ AP_Arming::AP_Arming(const AP_AHRS &ahrs_ref, Compass &compass,
{ {
AP_Param::setup_object_defaults(this, var_info); AP_Param::setup_object_defaults(this, var_info);
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter)
// default REQUIRE parameter to 1 (needed for Copter which is missing the parameter declaration above)
require.set_default(YES_MIN_PWM);
#endif
memset(last_accel_pass_ms, 0, sizeof(last_accel_pass_ms)); memset(last_accel_pass_ms, 0, sizeof(last_accel_pass_ms));
memset(last_gyro_pass_ms, 0, sizeof(last_gyro_pass_ms)); memset(last_gyro_pass_ms, 0, sizeof(last_gyro_pass_ms));
} }