Skip to content

Commit d9cd662

Browse files
authored
Merge pull request #18 from hmakelin/hmakelin-ulog-analysis
Add SITL test flight logs analysis
2 parents 950f50f + 974f3c9 commit d9cd662

File tree

4 files changed

+597
-3
lines changed

4 files changed

+597
-3
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ docs/_build/
2121
# Optional weights folder (LoFTR)
2222
weights/
2323

24-
# SITL test log output
25-
test/sitl/output/
24+
# SITL test log output (but leave one sample flight log)
25+
test/sitl/output/
26+
27+
# Jupyter Notebook checkpoints
28+
test/sitl/ulog_analysis/.ipynb_checkpoints/

docs/pages/developer_guide.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,19 @@ SITL tests are under the ``test/sitl`` folder. They are simple Python scripts:
335335
cd ~/px4_ros_com_ros2/src/gisnav/test/sitl
336336
python sitl_test_mock_gps_node.py
337337
338+
Flight Log Analysis
339+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
340+
The flight log generated by the SITL test can be analyzed with the Jupyter notebooks in ``test/ulog_analysis`` folder.
341+
You must first start ``jupyter-notebook``:
342+
343+
.. code-block:: bash
344+
345+
cd ~/px4_ros_com_ros2/src/gisnav/test/sitl/ulog_analysis
346+
jupyter-notebook
347+
348+
The notebook documents the analysis and displays the results. Download the example ULog file from Google Drive `here
349+
<https://drive.google.com/drive/folders/1SmcOV11IJG4qL7Of77mpNICeiLP_9fH7?usp=sharing>`_.
350+
338351
Documentation
339352
====================================================
340353

requirements-dev.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ pytest
1111
coverage
1212

1313
# SITL tests
14-
mavsdk
14+
mavsdk
15+
16+
# .ulog analysis
17+
jupyter
18+
git+https://github.com/dronecrew/px4tools.git

0 commit comments

Comments
 (0)