mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-06-03 10:39:33 +00:00
mavros_mavlink: Update get_calibration_status
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user