Calibrate 2nd robot sensors
Also use different turret ranges for each robot.
Signed-off-by: Milind Upadhyay <milind.upadhyay@gmail.com>
Change-Id: I101531d63a59e20afe328bc8b0576fc2ef79c401
diff --git a/y2022/control_loops/superstructure/turret/aiming.cc b/y2022/control_loops/superstructure/turret/aiming.cc
index 5fe8a2c..6320cb7 100644
--- a/y2022/control_loops/superstructure/turret/aiming.cc
+++ b/y2022/control_loops/superstructure/turret/aiming.cc
@@ -8,8 +8,8 @@
namespace turret {
using frc971::control_loops::Pose;
-using frc971::control_loops::aiming::ShotConfig;
using frc971::control_loops::aiming::RobotState;
+using frc971::control_loops::aiming::ShotConfig;
namespace {
// If the turret is at zero, then it will be at this angle at which the shot
@@ -55,7 +55,7 @@
// Use the previous shot distance to estimate the speed-over-ground of the
// ball.
current_goal_ = frc971::control_loops::aiming::AimerGoal(
- ShotConfig{goal, shot_mode, constants_->kTurretRange(),
+ ShotConfig{goal, shot_mode, constants_->turret_range,
constants_->shot_velocity_interpolation_table
.Get(current_goal_.target_distance)
.shot_speed_over_ground,