mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 21:23:57 +08:00
ecl_tools: add error message if topic not found in logfile
This commit is contained in:
@@ -39,13 +39,22 @@ ulog = ULog(args.filename, None)
|
|||||||
data = ulog.data_list
|
data = ulog.data_list
|
||||||
|
|
||||||
# extract data from EKF status message
|
# extract data from EKF status message
|
||||||
|
try:
|
||||||
estimator_status_data = ulog.get_dataset('estimator_status').data;
|
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
|
# extract data from EKF innovations message
|
||||||
|
try:
|
||||||
ekf2_innovations_data = ulog.get_dataset('ekf2_innovations').data;
|
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
|
# extract data from sensor preflight check message
|
||||||
|
try:
|
||||||
sensor_preflight_data = ulog.get_dataset('sensor_preflight').data;
|
sensor_preflight_data = ulog.get_dataset('sensor_preflight').data;
|
||||||
|
except (KeyError, IndexError, ValueError) as error:
|
||||||
|
print(type(error), "(sensor_preflight):", error)
|
||||||
|
|
||||||
if args.check_level_thresholds:
|
if args.check_level_thresholds:
|
||||||
check_level_dict_filename = args.check_level_thresholds
|
check_level_dict_filename = args.check_level_thresholds
|
||||||
|
|||||||
Reference in New Issue
Block a user