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,
diff --git a/frc971/shooter_interpolation/interpolation.h b/frc971/shooter_interpolation/interpolation.h
index c66b6cc..933c95e 100644
--- a/frc971/shooter_interpolation/interpolation.h
+++ b/frc971/shooter_interpolation/interpolation.h
@@ -21,7 +21,7 @@
// Uses the interpolation table to calculate the optimal shooter angle and
// power for a shot
- ShotParams GetShooterData(double distance);
+ ShotParams GetShooterData(double distance) const;
private:
// Contains the list of angle entries in the interpolation table