Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add raw data logging to sdcard #24

Merged
merged 2 commits into from
Dec 27, 2024
Merged

Add raw data logging to sdcard #24

merged 2 commits into from
Dec 27, 2024

Conversation

oxothnk423
Copy link
Contributor

This PR adds basic functionality to store raw sensor data into a .csv file on SD card.

Use the flag at the top of log.cpp to enable or disable:
bool DATAFILE = true; // set to false to disable data logging to SDcard

The data file is created when the vario timer starts running, and is closed & saved when the timer is stopped. Data will only be captured while the timer is running.

Data is stored from 3 sensors:

  • barometric pressure (NOT altitude), every 50ms, at the end of baro_calculatePressure()
  • IMU acceleration (total g-load), every 100ms, at the end of imu_update()
  • GPS lat, lng, alt (m), speed (m/s), course/heading (deg) inside gps_update()

@oxothnk423 oxothnk423 merged commit 5963f01 into main Dec 27, 2024
2 checks passed
@oxothnk423 oxothnk423 deleted the DataLogging-sdcard branch December 27, 2024 22:50
scottyob pushed a commit to scottyob/leaf that referenced this pull request Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant