Skip to content

Commit

Permalink
adjusted both delays again
Browse files Browse the repository at this point in the history
  • Loading branch information
julienthevenoz committed Mar 29, 2024
1 parent fbcba99 commit 8a41e5c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions systemtests/plotter_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ 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.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
self.DELAY_CONST_FIG8 = 1.4 #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 = 0
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
self.ALTITUDE_CONST_FIG8 = 1 #this is the altitude given for the takeoff in figure8.py. I should find a better solution than a symbolic constant ?
Expand Down Expand Up @@ -87,7 +87,8 @@ def read_csv_and_set_arrays(self, ideal_csvfile, rosbag_csvfile):
delay = 0
if self.test_name == "fig8":
delay = self.DELAY_CONST_FIG8
elif self.test_name == "m_t":
print("FIG8 DELAY ACTIVATED")
elif self.test_name == "mt":
delay = self.DELAY_CONST_MT
print("MT DELAY ACTIVATED")

Expand Down

0 comments on commit 8a41e5c

Please sign in to comment.