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
Generic history for different sensors #263
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome!
But doesn´t work yet :D |
91dafb9
to
4c58bc2
Compare
I think we should include num_stored_samples in the |
Because in the battery app now it plots all samples, which are all 0 so it's hard to see anything. |
I think we should keep |
Sounds good, or even max_samples or sample_buffer_size so it's clear it's a different length |
f0e3563
to
2b2756e
Compare
- Replace assert with Zephyr assert
- Set sampling time for battery to 1 minute for POSIX build - Add log level for battery to Kconfig - Add random battery levels for POSIX build - Move update time for the battery application to Kconfig
… and not the total buffer size to save the data (otherwise the empty part of the buffer will be saved) - zsw_history_del is now deleting the history from NVS - Rename "num" in history object to "max_samples" - Add zsw_history_samples to get the number of samples stored in the buffer - zsw_history_load does not delete the settings anymore - zsw_history_save does not add a sample to the history anymore - Exclude battery app source files when battery app should not be included
2b2756e
to
a166dba
Compare
48f8394
to
dade386
Compare
dade386
to
8760a51
Compare
3e7e3ee
to
d8fe966
Compare
Not working yet |
What's the issue? |
First idea and not tested.