... | @@ -237,6 +237,20 @@ will return a chunk of measured sensor values instead of a current sensor value. |
... | @@ -237,6 +237,20 @@ will return a chunk of measured sensor values instead of a current sensor value. |
|
| `references` | Returns the file storing the reference measurements | `<url>/api/file?references` |
|
|
| `references` | Returns the file storing the reference measurements | `<url>/api/file?references` |
|
|
|
|
|
|
## Unit tests
|
|
## Unit tests
|
|
|
|
Some of the software components used in the altimeter have unit tests written for them using the googletest
|
|
|
|
framework. Those are located in the `test` folder and separated into the `common` and `embedded` tests and
|
|
|
|
can be executed through the PlatformIO UI.
|
|
|
|
|
|
|
|
The `common` tests are tests of software components that have been written in a way as to not depend on
|
|
|
|
the features present on the microcontroller and can therefore be tested on a desktop machine or the
|
|
|
|
microcontroller directly.
|
|
|
|
|
|
|
|
The `embedded` tests on the other hand can only be executed on the microcontroller.
|
|
|
|
|
|
|
|
To add a new set of tests, simply create a new `.cpp` file in the respective testfolder and prefix it with
|
|
|
|
`test_`. Testcases written in this file will automatically be picked up and executed. Tests executed on a
|
|
|
|
desktop machine may require adding the tested source code to the `build_src_filter` in the `platformio.ini`
|
|
|
|
file.
|
|
|
|
|
|
## Known Issues
|
|
## Known Issues
|
|
- **Sensor task dropping samples while old values are written to filesystem:**<br>
|
|
- **Sensor task dropping samples while old values are written to filesystem:**<br>
|
... | @@ -278,7 +292,7 @@ will return a chunk of measured sensor values instead of a current sensor value. |
... | @@ -278,7 +292,7 @@ will return a chunk of measured sensor values instead of a current sensor value. |
|
- Expand plotting script to also plot the flight path. This requires measuring
|
|
- Expand plotting script to also plot the flight path. This requires measuring
|
|
the orientation of the controller during flight though for which the HMC5883
|
|
the orientation of the controller during flight though for which the HMC5883
|
|
sensor issue has to be resolved.
|
|
sensor issue has to be resolved.
|
|
- Improve webinterface design
|
|
- Improve webinterface design and use [Server-Sent events](https://randomnerdtutorials.com/esp32-web-server-sent-events-sse/) for more responsiveness instead of the currently used AJAX.
|
|
|
|
|
|
# Additional resources/guides
|
|
# Additional resources/guides
|
|
## General information
|
|
## General information
|
... | | ... | |