Skip to content

Commit

Permalink
Add test data from STM32F3 Discovery project
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsided committed Jul 6, 2024
1 parent 6f324a9 commit c9b06ba
Show file tree
Hide file tree
Showing 20 changed files with 88 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.csv filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/0-ident-ident-x64.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/1-heading-u8-x1.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/106-gyro-i16-x1.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/106-ident-ident-x64.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/106-lranges-lrange-x1.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/130-ident-ident-x64.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/130-lranges-lrange-x1.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/130-temp-i16-x1.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/206-ident-ident-x64.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/206-lranges-lrange-x1.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/206-temp-i16-x1.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/25-acc-i16-x3.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/25-ident-ident-x64.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/25-lranges-lrange-x1.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/30-ident-ident-x64.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/30-lranges-lrange-x1.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/30-mag-i16-x3.csv
Git LFS file not shown
32 changes: 32 additions & 0 deletions test/2024-07-06/stm32f3discovery/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# STM32F3 Discovery Test Data

This directory contains an output stream from the
[`sunsided/stm32f3disco-rust`](https://github.com/sunsided/stm32f3disco-rust) project
using [`serial-sensors-proto`](https://crates.io/crates/serial-sensors-proto) version `0.4.0`.

## CSV files

The CSV files contain the actual data. The important parts are:

* `25-acc-i16-x1.csv`, the LSM303DLHC accelerometer
* `30-mag-i16-x1.csv`, the LSM303DLHC magnetometer
* `106-gyro-i16-x1.csv`, the L3GD20 gyroscope
* `130-temp-i16-x1.csv`, the LSM303DLHC magnetometer's temperature reading
* `206-temp-i16-x1.csv`, the L3GD20's temperature reading

The corresponding `lranges` files contain normalization data and generally resemble
information from the datasheets. As soon as the information was sent by the sensor,
the respective CSV columns were populated.

Fake sensors:

* `1-heading-u8-x1.csv`, is a simple heading derived by `atan2` from the magnetometer

## Raw data

By virtue of the byte stuffing, each message packet is prefixed with `0x04` and ends with `0x00`,
such that the sequence `0004` resembles a synchronization point between two messages.
Since this data was serialized with `serial-sensors-proto` version `0.4.0`, which uses
the "version 1" data format, the sequence can be extended to `000401`; the `01` here
s already part of the new data frame (indicating protocol version `1`). All data is encoded
in little-endian format.
3 changes: 3 additions & 0 deletions test/2024-07-06/stm32f3discovery/raw.bin
Git LFS file not shown

0 comments on commit c9b06ba

Please sign in to comment.