mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 10:17:45 +08:00
Update px4tools api for mission test.
This commit is contained in:
committed by
Daniel Agar
parent
d8f423aa2b
commit
8e297022e6
@@ -369,7 +369,8 @@ class MavrosMissionTest(unittest.TestCase):
|
|||||||
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 %s", last_log)
|
rospy.loginfo("log file %s", last_log)
|
||||||
data = px4tools.ulog.read_ulog(last_log).resample_and_concat(0.1)
|
data = px4tools.ulog.read_ulog(last_log).concat(dt=0.1)
|
||||||
|
data = px4tools.ulog.compute_data(data)
|
||||||
res = px4tools.estimator_analysis(data, False)
|
res = px4tools.estimator_analysis(data, False)
|
||||||
|
|
||||||
# enforce performance
|
# enforce performance
|
||||||
|
|||||||
Reference in New Issue
Block a user