mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 01:43:33 +08:00
ecl_tools: use pyulog built in function to get dataset
This commit is contained in:
@@ -38,23 +38,14 @@ args = parser.parse_args()
|
|||||||
ulog = ULog(args.filename, None)
|
ulog = ULog(args.filename, None)
|
||||||
data = ulog.data_list
|
data = ulog.data_list
|
||||||
|
|
||||||
# extract data from innovations and status messages
|
# extract data from EKF status message
|
||||||
for d in data:
|
estimator_status_data = ulog.get_dataset('estimator_status').data;
|
||||||
if d.name == 'estimator_status':
|
|
||||||
estimator_status_data = d.data
|
# extract data from EKF innovations message
|
||||||
print('found estimator_status data')
|
ekf2_innovations_data = ulog.get_dataset('ekf2_innovations').data;
|
||||||
for d in data:
|
|
||||||
if d.name == 'ekf2_innovations':
|
|
||||||
ekf2_innovations_data = d.data
|
|
||||||
print('found ekf2_innovation data')
|
|
||||||
|
|
||||||
# extract data from sensor preflight check message
|
# extract data from sensor preflight check message
|
||||||
sensor_preflight = {}
|
sensor_preflight_data = ulog.get_dataset('sensor_preflight').data;
|
||||||
for d in data:
|
|
||||||
if d.name == 'sensor_preflight':
|
|
||||||
sensor_preflight_data = d.data
|
|
||||||
print('found sensor_preflight data')
|
|
||||||
|
|
||||||
|
|
||||||
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