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 dce3b615b5
commit 00bc528729
1 changed files with 1 additions and 1 deletions

View File

@ -1315,7 +1315,7 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
result = MAV_RESULT_FAILED;
}
} else if (is_equal(packet.param3,1.0f)) {
if (!sub.sensor_health.depth || sub.motors.armed()) {
if (!sub.control_check_barometer() || sub.motors.armed()) {
result = MAV_RESULT_FAILED;
} else {
sub.init_barometer(true);