Update px4tools api for mission test.

This commit is contained in:
James Goppert 2017-01-14 15:32:05 -05:00 committed by Daniel Agar
parent d8f423aa2b
commit 8e297022e6
1 changed files with 2 additions and 1 deletions

View File

@ -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