mavros_mavlink: Update get_calibration_status

This commit is contained in:
Arthur Golubtsov
2019-11-01 15:56:05 +00:00
parent e26f7a861a
commit 4f59f397fe

View File

@@ -85,7 +85,10 @@ def get_calibration_status():
if acc_status.value.integer == 0 and acc_status.success:
status_text += "acc: uncalibrated; "
if status_text == "":
status_text = "OK"
if not gyro_status.success or not mag_status.success or not acc_status.success:
status_text = "NO_INFO"
else:
status_text = "OK"
else:
status_text = status_text[:-2]
return status_text