Skip to content

Commit ab1f562

Browse files
committed
Add SITL test flight logs analysis (compute position estimate variance/standard deviation).
1 parent 950f50f commit ab1f562

File tree

4 files changed

+597
-3
lines changed

4 files changed

+597
-3
lines changed

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ 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+
!test/sitl/output/gisnav-sitl-test-log_2022-09-04T10-31-20Z.ulog
27+
28+
# Jupyter Notebook checkpoints
29+
test/sitl/ulog_analysis/.ipynb_checkpoints/

docs/pages/developer_guide.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,18 @@ 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.
349+
338350
Documentation
339351
====================================================
340352

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+
px4tools

0 commit comments

Comments
 (0)