mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 07:07:58 +00:00
Change calibration check logic
This commit is contained in:
@@ -93,7 +93,7 @@ def get_calibration_status():
|
|||||||
if acc_status.value.integer == 0 and acc_status.success:
|
if acc_status.value.integer == 0 and acc_status.success:
|
||||||
status_text += "acc: uncalibrated; "
|
status_text += "acc: uncalibrated; "
|
||||||
if status_text == "":
|
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"
|
status_text = "NO_INFO"
|
||||||
else:
|
else:
|
||||||
status_text = "OK"
|
status_text = "OK"
|
||||||
|
|||||||
Reference in New Issue
Block a user