From fbcba995598ea638a9a61fcb2bc9f74207d558e8 Mon Sep 17 00:00:00 2001 From: JulienThevenozIMRC Date: Fri, 29 Mar 2024 14:19:48 +0100 Subject: [PATCH] adjusted both delays again --- systemtests/plotter_class.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systemtests/plotter_class.py b/systemtests/plotter_class.py index 0ddfbe5c1..593411952 100644 --- a/systemtests/plotter_class.py +++ b/systemtests/plotter_class.py @@ -25,7 +25,7 @@ def __init__(self, sim_backend = False): self.SIM = sim_backend #indicates if we are plotting data from real life test or from a simulated test. Default is false (real life test) self.EPSILON = 0.1 # euclidian distance in [m] between ideal and recorded trajectory under which the drone has to stay to pass the test (NB : epsilon is doubled for multi_trajectory test) self.ALLOWED_DEV_POINTS = 0.05 #allowed percentage of datapoints whose deviation > EPSILON while still passing test (currently % for fig8 and 10% for mt) - self.DELAY_CONST_FIG8 = 1.75 #4.75 #this is the delay constant which I found by adding up all the time.sleep() etc in the figure8.py file. + self.DELAY_CONST_FIG8 = 1.5 #4.75 #this is the delay constant which I found by adding up all the time.sleep() etc in the figure8.py file. self.DELAY_CONST_MT = 6 if self.SIM : #It allows to temporally adjust the ideal and real trajectories on the graph. Could this be implemented in a better (not hardcoded) way ? self.DELAY_CONST_FIG8 = -0.18 #for an unknown reason, the delay constant with the sim_backend is different @@ -89,6 +89,7 @@ def read_csv_and_set_arrays(self, ideal_csvfile, rosbag_csvfile): delay = self.DELAY_CONST_FIG8 elif self.test_name == "m_t": delay = self.DELAY_CONST_MT + print("MT DELAY ACTIVATED") for i in range(bag_arrays_size): try: