From 94bf2f2715aa53bdc2d58e51b0b3564d488969d6 Mon Sep 17 00:00:00 2001 From: artem30801 Date: Tue, 17 Sep 2024 19:01:07 +0300 Subject: [PATCH] Revert "Change calibration check logic" This reverts commit 422a34b0914e9ce2a300addaaffdf292ada695a9. --- 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 8964956..fb5d7eb 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 and not acc_status.success and not (has_mag and mag_status.success): + if not gyro_status.success or not acc_status.success or not (has_mag and mag_status.success): status_text = "NO_INFO" else: status_text = "OK"