AP_Arming: make RC check message clearer

This commit is contained in:
Tatsuya Yamaguchi 2020-04-23 21:47:24 +09:00 committed by Randy Mackay
parent 43ef8a192b
commit c4fe6fce1c
1 changed files with 4 additions and 4 deletions

View File

@ -592,11 +592,11 @@ bool AP_Arming::rc_calibration_checks(bool report)
}
const uint16_t trim = c->get_radio_trim();
if (c->get_radio_min() > trim) {
check_failed(ARMING_CHECK_RC, report, "RC%d minimum is greater than trim", i + 1);
check_failed(ARMING_CHECK_RC, report, "RC%d_MIN is greater than RC%d_TRIM", i + 1, i + 1);
check_passed = false;
}
if (c->get_radio_max() < trim) {
check_failed(ARMING_CHECK_RC, report, "RC%d maximum is less than trim", i + 1);
check_failed(ARMING_CHECK_RC, report, "RC%d_MAX is less than RC%d_TRIM", i + 1, i + 1);
check_passed = false;
}
}
@ -708,11 +708,11 @@ bool AP_Arming::servo_checks(bool report) const
const uint16_t trim = c->get_trim();
if (c->get_output_min() > trim) {
check_failed(report, "SERVO%d minimum is greater than trim", i + 1);
check_failed(report, "SERVO%d_MIN is greater than SERVO%d_TRIM", i + 1, i + 1);
check_passed = false;
}
if (c->get_output_max() < trim) {
check_failed(report, "SERVO%d maximum is less than trim", i + 1);
check_failed(report, "SERVO%d_MAX is less than SERVO%d_TRIM", i + 1, i + 1);
check_passed = false;
}
}