Override Hood and Shooter goals with vision distance
Change-Id: I9741880fe7f96cf4208ca2cf75d584d683a30cea
diff --git a/frc971/shooter_interpolation/interpolation.cc b/frc971/shooter_interpolation/interpolation.cc
index f558acd..4eba448 100644
--- a/frc971/shooter_interpolation/interpolation.cc
+++ b/frc971/shooter_interpolation/interpolation.cc
@@ -30,7 +30,7 @@
});
}
-ShotParams InterpolationTable::GetShooterData(double distance) {
+ShotParams InterpolationTable::GetShooterData(double distance) const {
// Points to to the smallest item such that it->first >= dist, or end() if no
// such item exists.
auto it = ::std::lower_bound(table_.begin(), table_.end(), distance,