Auto Exposure:

  - Filter results down to the three best.
  - Changing exposure based on distance to the target or at random.
  - Plumb exposure through the debug framework.
  - Refactor into target finder.

Change-Id: Ia083f56859938bf0825472fd15d248c545f6f2fc
diff --git a/y2019/vision/debug_viewer.cc b/y2019/vision/debug_viewer.cc
index 4f0e747..c8d8234 100644
--- a/y2019/vision/debug_viewer.cc
+++ b/y2019/vision/debug_viewer.cc
@@ -195,6 +195,12 @@
       }
     }
 
+    int desired_exposure;
+    if (target_finder_.TestExposure(results, &desired_exposure)) {
+      printf("Switching exposure to %d.\n", desired_exposure);
+      SetExposure(desired_exposure);
+    }
+
     // If the target list is not empty then we found a target.
     return !results.empty();
   }