Closed Kampi closed 1 month ago
Looks awesome!
But doesn´t work yet :D
I think we should include num_stored_samples in the zsw_history_t
to allow the user to know how many of the samples are actually valid. Since the num
param today is always the max number of samples. Or can num
be changed to actually reflect the number of valid samples?
I think we should include num_stored_samples in the
zsw_history_t
to allow the user to know how many of the samples are actually valid. Since thenum
param today is always the max number of samples. Or cannum
be changed to actually reflect the number of valid samples?
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 include num_stored_samples in the
zsw_history_t
to allow the user to know how many of the samples are actually valid. Since thenum
param today is always the max number of samples. Or cannum
be changed to actually reflect the number of valid samples?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 num
(but rename it to length) to have an indicator about the maximum length. Then we add a sample counter. Or we can use write_index
for it?
I think we should include num_stored_samples in the
zsw_history_t
to allow the user to know how many of the samples are actually valid. Since thenum
param today is always the max number of samples. Or cannum
be changed to actually reflect the number of valid samples?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
num
(but rename it to length) to have an indicator about the maximum length. Then we add a sample counter. Or we can usewrite_index
for it?
Sounds good, or even max_samples or sample_buffer_size so it's clear it's a different length
Not working yet
What's the issue?
What's the issue?
I thunk the get sample function I did not get correct.
Ok, it's my voltage compressions int mV => byte which is bad, nothing wrong with history code I think. And a bug in get sampel i.
Now fixed
First idea and not tested.