From 5ec8bb86cc66a471b84269aed2bf1f11111319c5 Mon Sep 17 00:00:00 2001 From: JulienThevenoz Date: Fri, 24 Nov 2023 13:47:14 +0100 Subject: [PATCH] renamed newsub.py to run_test.py and adjusted altitude constant for fig8 test in plotter_class --- .github/workflows/systemtests.yml | 2 +- systemtests/plotter_class.py | 2 +- systemtests/{newsub.py => run_test.py} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename systemtests/{newsub.py => run_test.py} (100%) diff --git a/.github/workflows/systemtests.yml b/.github/workflows/systemtests.yml index b2d59305a..85a59a557 100644 --- a/.github/workflows/systemtests.yml +++ b/.github/workflows/systemtests.yml @@ -39,7 +39,7 @@ jobs: source /opt/ros/humble/setup.bash . install/local_setup.bash export ROS_LOCALHOST_ONLY=1 - python3 src/crazyswarm2/systemtests/newsub.py + python3 src/crazyswarm2/systemtests/run_test.py - name: Upload files id: step6 diff --git a/systemtests/plotter_class.py b/systemtests/plotter_class.py index b74fc9fa2..f138d104e 100644 --- a/systemtests/plotter_class.py +++ b/systemtests/plotter_class.py @@ -22,7 +22,7 @@ def __init__(self): self.EPSILON = 0.05 # euclidian distance in [m] between ideal and recorded trajectory under which the drone has to stay to pass the test self.DELAY_CONST_FIG8 = 4.75 #this is the delay constant which I found by adding up all the time.sleep() etc in the figure8.py file. This should be implemented better later - self.ALTITUDE_CONST_FIG8 = 0.5 #this is the altitude given for the takeoff in figure8.py. I should find a better solution than a symbolic constant ? + self.ALTITUDE_CONST_FIG8 = 0.4 #this is the altitude given for the takeoff in figure8.py. I should find a better solution than a symbolic constant ? self.ALTITUDE_CONST_MULTITRAJ = 1 #takeoff altitude for traj0 in multi_trajectory.py def file_guard(self, pdf_path): diff --git a/systemtests/newsub.py b/systemtests/run_test.py similarity index 100% rename from systemtests/newsub.py rename to systemtests/run_test.py