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

New sampling and smoothing algorithm #7

Merged
merged 4 commits into from
Nov 18, 2021
Merged

New sampling and smoothing algorithm #7

merged 4 commits into from
Nov 18, 2021

Conversation

tomek-szczesny
Copy link
Contributor

This is state of the art of my research on SP3, all that I could have squeezed from this hardware.

Most of the functionalities of PAC library have been removed, simplified and optimized in new class meas_chan.
This class also implements circular buffers for current measurements that can be easily replaced with other types of filters or removed - however these are set in a way that should not delay current updates in any way, so I think these changes may stay even after hardware revision.

Please refer to issue #3 for some test results.

tomek-szczesny and others added 4 commits November 3, 2021 20:46
Two new classes have been introduced in meas_chan.h. One represents PAC channel, another encapsulates three channels for faster sample acquisition.
Meas_chan holds latest voltage measurement as well as circular buffer for current samples. Firmware may read voltage, current and power on demand, and the class applies appropriate averaging automatically.

This is a commit where everything seems to work. A cleanup commit shall follow shortly.
This caused a lot of confusion while debugging.
@leeseungcheol
Copy link
Collaborator

Hello,

Thank you for the PRs.
I will test your smoothing algorithm on my side. :)

@tomek-szczesny
Copy link
Contributor Author

So, any news? If you have any doubts don't hesitate to ask.

@leeseungcheol
Copy link
Collaborator

It works well. Thank you for the PRs.

@leeseungcheol leeseungcheol merged commit d547a39 into hardkernel:master Nov 18, 2021
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.

2 participants