From 3e14fffc80cdbaed1620ca1db8ddf2729ac686c1 Mon Sep 17 00:00:00 2001 From: JulienThevenoz Date: Fri, 2 Feb 2024 13:49:10 +0100 Subject: [PATCH] cleanup --- systemtests/plotter_class.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/systemtests/plotter_class.py b/systemtests/plotter_class.py index bceb4db6e..4b34d461c 100644 --- a/systemtests/plotter_class.py +++ b/systemtests/plotter_class.py @@ -137,7 +137,6 @@ def adjust_arrays(self): ''' Method that trims the self.bag_* attributes to get rid of the datapoints where the drone is immobile on the ground and makes self.bag_times start at 0 [s]''' print(f"rosbag initial length {(self.bag_times[-1]-self.bag_times[0]) }s") - print(f"rosbag initial length {(self.bag_times[-1]-self.bag_times[0]) * 10**-9}s") #find the takeoff time and landing times ground_level = self.bag_z[0] airborne = False @@ -147,15 +146,11 @@ def adjust_arrays(self): for z_coord in self.bag_z: if not(airborne) and z_coord > ground_level + ground_level*(0.1): #when altitude of the drone is 10% higher than the ground level, it started takeoff takeoff_index = i - takeoff_time = self.bag_times[takeoff_index] airborne = True print(f"takeoff time is {self.bag_times[takeoff_index]}s") - print(f"takeof time is {(takeoff_time-self.bag_times[0]) * 10**-9}") if airborne and z_coord <= ground_level + ground_level*(0.1): #find when it lands again landing_index = i - landing_time = self.bag_times[landing_index] print(f"landing time is {self.bag_times[landing_index]}s") - print(f"landing time is {(landing_time-self.bag_times[0]) * 10**-9}") break i+=1