Save measurements blocks to csv #81
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Opening this PR as a proof of concept for saving measurement blocks to a csv and looking for feedback from @Comer352L on how you would want it to be implemented to complete the feature.
When you start reading measurement blocks it creates/opens a new file
measurements.csvoverwriting any previous data. Whenever the measurements table is updated it writes the unix epoch, time since measurement start, and the measurement blocks to the csv. When measurements stopped the file is closed.Ideally there would a "record" or "start" button with a path input to save the csv as it writes to the directory that
FreeSSMwas started from.Test on:
I attached a csv taken from driving around trying to diag a P0420 code along with excerpt of the first 20 lines.
running.csv
Resolves #18 and #78