Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement median filtering for ALS data
Earlier, when fixed time ALS sampling was possible, mce used median filtering to prevent adjusting display brightness due to short lived sensor noise. The feature got removed while adapting to sensor drivers that report only changes that are significant enough. User timer based approach to resample waveform obtained by tracking changes reported by the ambient light sensor. Apply 9 slot moving window median filtering on top of that and feed the results in to brightness evaluation state machines. To avoid unnecessary processing, the timer is stopped when no ALS changes are noticed i.e. when all of the history data is the same. The median filter can be enabled via: mcetool --set-als-input-filter=<disabled|median> And the sample time can be adjusted via: mcetool --set-als-sample-time=<50...1000> [mce] Implement median filtering for ALS data
- Loading branch information
Showing
6 changed files
with
767 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.