Sub: better check and text message for baro calibration failure

This commit is contained in:
Jacob Walser 2018-04-22 11:27:22 -04:00
parent 7caca6a251
commit 0223cf70ed
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ void GCS_MAVLINK_Sub::handle_change_alt_request(AP_Mission::Mission_Command &cmd
MAV_RESULT GCS_MAVLINK_Sub::_handle_command_preflight_calibration_baro() MAV_RESULT GCS_MAVLINK_Sub::_handle_command_preflight_calibration_baro()
{ {
if (!sub.sensor_health.depth) { if (!sub.control_check_barometer()) {
return MAV_RESULT_FAILED; return MAV_RESULT_FAILED;
} }