forked from Archive/PX4-Autopilot
mission_test: fix px4tools func import
This commit is contained in:
parent
13c0c618f3
commit
88a32cb680
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue