Upgrade WPILib and upgraded compilers to C++17
I haven't touched the CTRE libraries yet, although they may need to be
upgraded as well.
Note that this change makes it so that you need either Ubuntu 18.04 or
later or debian buster or later in order to build the code (you may be
able to build code for the roborio on older operating systems, but
running the tests will not work normally).
Change-Id: I0cfa37fe37f830edde6d305e1f50414c369098e4
diff --git a/y2019/vision/global_calibration.cc b/y2019/vision/global_calibration.cc
index ac559b0..e2c4490 100644
--- a/y2019/vision/global_calibration.cc
+++ b/y2019/vision/global_calibration.cc
@@ -198,7 +198,7 @@
const ::aos::vision::Vector<2> target_point = target_value[j];
// Now build up the residual block.
- auto ftor = [template_point, target_point, i](
+ auto ftor = [template_point, target_point](
const double *const intrinsics, const double *const extrinsics,
double *residual) {
const IntrinsicParams intrinsic_params =