AP_Arming: manual transmitter checks call rc calibration checks

This commit is contained in:
Peter Barker 2017-09-04 14:16:12 +10:00 committed by Randy Mackay
parent 9b52c9b670
commit 25a0e6378e
2 changed files with 10 additions and 3 deletions

View File

@ -450,6 +450,11 @@ bool AP_Arming::hardware_safety_check(bool report)
return true; return true;
} }
bool AP_Arming::rc_calibration_checks(bool report)
{
return true;
}
bool AP_Arming::manual_transmitter_checks(bool report) bool AP_Arming::manual_transmitter_checks(bool report)
{ {
if ((checks_to_perform & ARMING_CHECK_ALL) || if ((checks_to_perform & ARMING_CHECK_ALL) ||
@ -462,9 +467,9 @@ bool AP_Arming::manual_transmitter_checks(bool report)
return false; return false;
} }
//TODO verify radio calibration if (!rc_calibration_checks(report)) {
//Requires access to Parameters ... which are implemented a little return false;
//differently for Rover, Plane, and Copter. }
} }
return true; return true;

View File

@ -101,6 +101,8 @@ protected:
virtual bool board_voltage_checks(bool report); virtual bool board_voltage_checks(bool report);
virtual bool rc_calibration_checks(bool report);
bool manual_transmitter_checks(bool report); bool manual_transmitter_checks(bool report);
virtual enum HomeState home_status() const = 0; virtual enum HomeState home_status() const = 0;