Skip to content

Commit

Permalink
another debug action
Browse files Browse the repository at this point in the history
  • Loading branch information
julienthevenoz committed Jan 19, 2024
1 parent 9205ce8 commit 5189df6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/systemtests_sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ jobs:
- name: Build firmware
id: step1
run: |
#rm crazyflie-firmware
#git clone --recursive https://github.com/bitcraze/crazyflie-firmware.git
ls crazyflie-firmware || git clone --recursive https://github.com/bitcraze/crazyflie-firmware.git
cd crazyflie-firmware
git pull
git submodule sync
git submodule update --init --recursive
make cf2_defconfig
make bindings_python
cd build
python3 setup.py install --user
export PYTHONPATH=/home/github/actions-runner/_work/crazyswarm2/crazyswarm2/crazyflie-firmware/build:$PYTHONPATH
python3 -m pip install cffirmware
- name: Create workspace
id: step2
run: |
Expand All @@ -32,6 +31,10 @@ jobs:
run: |
cd ros2_ws/src
ls motion_capture_tracking || git clone --branch ros2 --recursive https://github.com/IMRCLab/motion_capture_tracking.git
cd motion_capture_tracking
git pull
git submodule sync
git submodule update --recursive --init
- name: Checkout Crazyswarm2
id: step4
uses: actions/checkout@v4
Expand All @@ -51,6 +54,8 @@ jobs:
cd ros2_ws
source /opt/ros/humble/setup.bash
. install/local_setup.bash
pip list
pip show cffirmware
export ROS_LOCALHOST_ONLY=1
python3 src/crazyswarm2/systemtests/test_flights.py --sim
Expand Down
2 changes: 1 addition & 1 deletion systemtests/test_flights.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def record_start_and_clean(self, testname:str, max_wait:int):
atexit.register(clean_process, start_flight_test)

if TestFlights.SIM :
start_flight_test.wait(timeout=max_wait*10) #simulation can be super slow
start_flight_test.wait(timeout=max_wait*1) #simulation can be super slow
else :
start_flight_test.wait(timeout=max_wait) #raise Timeoutexpired after max_wait seconds if start_flight_test didn't finish by itself

Expand Down

0 comments on commit 5189df6

Please sign in to comment.