mission_test: fix px4tools func import

This commit is contained in:
TSC21 2020-01-13 19:41:59 +00:00 committed by Nuno Marques
parent 13c0c618f3
commit 88a32cb680
1 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ import glob
import json import json
import math import math
import os import os
import px4tools from px4tools import ulog
import sys import sys
from mavros import mavlink from mavros import mavlink
from mavros_msgs.msg import Mavlink, Waypoint, WaypointReached from mavros_msgs.msg import Mavlink, Waypoint, WaypointReached
@ -295,9 +295,9 @@ class MavrosMissionTest(MavrosTestCommon):
rospy.loginfo("mission done, calculating performance metrics") rospy.loginfo("mission done, calculating performance metrics")
last_log = get_last_log() last_log = get_last_log()
rospy.loginfo("log file {0}".format(last_log)) rospy.loginfo("log file {0}".format(last_log))
data = px4tools.read_ulog(last_log).concat(dt=0.1) data = ulog.read_ulog(last_log).concat(dt=0.1)
data = px4tools.compute_data(data) data = ulog.compute_data(data)
res = px4tools.estimator_analysis(data, False) res = ulog.estimator_analysis(data, False)
# enforce performance # enforce performance
self.assertTrue(abs(res['roll_error_mean']) < 5.0, str(res)) self.assertTrue(abs(res['roll_error_mean']) < 5.0, str(res))