Copter: Tradheli servo_test fix

This commit is contained in:
Josh Welsh 2020-08-03 19:38:55 -07:00 committed by Randy Mackay
parent 69d97abb88
commit e8d59f2cde
1 changed files with 8 additions and 0 deletions

View File

@ -267,6 +267,14 @@ bool AP_Arming_Copter::motor_checks(bool display_failure)
return false;
}
//servo_test check
#if FRAME_CONFIG == HELI_FRAME
if(copter.motors->servo_test_running()) {
check_failed(display_failure, "Servo Test is still running");
return false;
}
#endif
// if this is a multicopter using ToshibaCAN ESCs ensure MOT_PMW_MIN = 1000, MOT_PWM_MAX = 2000
#if HAL_WITH_UAVCAN && (FRAME_CONFIG != HELI_FRAME)
bool tcan_active = false;