mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ecl_tools: Always allocate topic data variables
This commit is contained in:
parent
01c2994107
commit
5a10db65b6
@ -39,18 +39,21 @@ ulog = ULog(args.filename, None)
|
||||
data = ulog.data_list
|
||||
|
||||
# extract data from EKF status message
|
||||
estimator_status_data = {}
|
||||
try:
|
||||
estimator_status_data = ulog.get_dataset('estimator_status').data;
|
||||
except (KeyError, IndexError, ValueError) as error:
|
||||
print(type(error), "(estimator_status):", error)
|
||||
|
||||
# extract data from EKF innovations message
|
||||
ekf2_innovations_data = {}
|
||||
try:
|
||||
ekf2_innovations_data = ulog.get_dataset('ekf2_innovations').data;
|
||||
except (KeyError, IndexError, ValueError) as error:
|
||||
print(type(error), "(ekf2_innovations):", error)
|
||||
|
||||
# extract data from sensor preflight check message
|
||||
sensor_preflight_data = {}
|
||||
try:
|
||||
sensor_preflight_data = ulog.get_dataset('sensor_preflight').data;
|
||||
except (KeyError, IndexError, ValueError) as error:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user