From 3fa13300a2b66d8330a2129c2a806d0b1e28f29b Mon Sep 17 00:00:00 2001 From: artem30801 Date: Tue, 17 Sep 2024 19:10:06 +0300 Subject: [PATCH] Change calibration check logic --- drone/modules/mavros_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drone/modules/mavros_wrapper.py b/drone/modules/mavros_wrapper.py index fb5d7eb..8964956 100644 --- a/drone/modules/mavros_wrapper.py +++ b/drone/modules/mavros_wrapper.py @@ -93,7 +93,7 @@ def get_calibration_status(): if acc_status.value.integer == 0 and acc_status.success: status_text += "acc: uncalibrated; " if status_text == "": - if not gyro_status.success or not acc_status.success or not (has_mag and mag_status.success): + if not gyro_status.success and not acc_status.success and not (has_mag and mag_status.success): status_text = "NO_INFO" else: status_text = "OK"