Copter: pass display_failure to AP_Motors heli check

This commit is contained in:
Andrew Tridgell 2015-09-14 12:03:12 +10:00
parent f22a1d3e6d
commit 5cb088fe14

View File

@ -550,10 +550,7 @@ bool Copter::pre_arm_checks(bool display_failure)
#endif
#if FRAME_CONFIG == HELI_FRAME
// check helicopter parameters
if (!motors.parameter_check()) {
if (display_failure) {
gcs_send_text_P(MAV_SEVERITY_CRITICAL,PSTR("PreArm: Check Heli Parameters"));
}
if (!motors.parameter_check(display_failure)) {
return false;
}
#endif // HELI_FRAME