Copter: fix motors_checks to AP_Arming

This commit is contained in:
Randy Mackay 2017-01-09 14:43:39 +09:00
parent ee9588c674
commit a52db9f29d
2 changed files with 3 additions and 2 deletions

View File

@ -297,10 +297,10 @@ bool AP_Arming_Copter::parameter_checks(bool display_failure)
} }
// check motor setup was successful // check motor setup was successful
bool Copter::motor_checks(bool display_failure) bool AP_Arming_Copter::motor_checks(bool display_failure)
{ {
// check motors initialised correctly // check motors initialised correctly
if (!motors->initialised_ok()) { if (!copter.motors->initialised_ok()) {
if (display_failure) { if (display_failure) {
gcs_send_text(MAV_SEVERITY_CRITICAL,"PreArm: check firmware or FRAME_CLASS"); gcs_send_text(MAV_SEVERITY_CRITICAL,"PreArm: check firmware or FRAME_CLASS");
} }

View File

@ -37,6 +37,7 @@ protected:
bool fence_checks(bool display_failure); bool fence_checks(bool display_failure);
bool board_voltage_checks(bool display_failure); bool board_voltage_checks(bool display_failure);
bool parameter_checks(bool display_failure); bool parameter_checks(bool display_failure);
bool motor_checks(bool display_failure);
bool pilot_throttle_checks(bool display_failure); bool pilot_throttle_checks(bool display_failure);
bool barometer_checks(bool display_failure); bool barometer_checks(bool display_failure);
bool rc_calibration_checks(bool display_failure); bool rc_calibration_checks(bool display_failure);