Optofidelity: PWM-proof screen draw detector

Unfortunately PWM compensation does not work very well on screen flashes
since the PWM frequency is changing with changing brightness and the
color transition moving across the screen is interfering with our
ability to estimate the PWM characteristics.

Thus we are switching to a simpler method to determine screen flashes
and instead of looking at the left and right edges of the screen, we
look at the average brightness of the screen. This is much more reliable
and consistent across all devices.

BUG=chromium:536633
TEST=test cases included and covered by regression tests

Change-Id: I66364bfe91ee7d017fb7f9c4214c1d2434f4481d
Reviewed-on: https://chromium-review.googlesource.com/336529
Commit-Ready: Dennis Kempin <denniskempin@chromium.org>
Tested-by: Dennis Kempin <denniskempin@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@chromium.org>
4 files changed
tree: f9c0b0278d078a2d97befdac89713982e8fc80ac
  1. optofidelity/
  2. quickstep/
  3. touchbotI/
  4. touchbotII/
  5. .gitignore
  6. OWNERS
  7. setup.py