Copter: display pre-arm check failure reason every 30sec

This commit is contained in:
Randy Mackay 2013-11-18 17:20:39 +09:00
parent 330aa95769
commit 24dc4391bb

View File

@ -1219,8 +1219,15 @@ static void one_hz_loop()
if ((g.log_bitmask & MASK_LOG_CURRENT) && motors.armed())
Log_Write_Current();
// perform pre-arm checks
pre_arm_checks(false);
// perform pre-arm checks & display failures every 30 seconds
static uint8_t pre_arm_display_counter = 15;
pre_arm_display_counter++;
if (pre_arm_display_counter >= 30) {
pre_arm_checks(true);
pre_arm_display_counter = 0;
}else{
pre_arm_checks(false);
}
// auto disarm checks
auto_disarm_check();