Upgrade clang to 16.0.3
We really want clang 17 for the new CUDA version, but that isn't out
yet. This gets us a lot closer.
Change-Id: Iff6bb187260777690ae68a7eaef1e508c7194e68
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2017/control_loops/drivetrain/drivetrain_base.h b/y2017/control_loops/drivetrain/drivetrain_base.h
index 59ca4a9..c84934f 100644
--- a/y2017/control_loops/drivetrain/drivetrain_base.h
+++ b/y2017/control_loops/drivetrain/drivetrain_base.h
@@ -7,8 +7,8 @@
namespace control_loops {
namespace drivetrain {
-const ::frc971::control_loops::drivetrain::DrivetrainConfig<double>
- &GetDrivetrainConfig();
+const ::frc971::control_loops::drivetrain::DrivetrainConfig<double> &
+GetDrivetrainConfig();
} // namespace drivetrain
} // namespace control_loops
diff --git a/y2017/vision/target_finder.cc b/y2017/vision/target_finder.cc
index f7a958c..e917b2e 100644
--- a/y2017/vision/target_finder.cc
+++ b/y2017/vision/target_finder.cc
@@ -68,14 +68,12 @@
RangeImage t_img = Transpose(img);
int total = 0;
int split = 0;
- int count = t_img.mini();
for (const auto &row : t_img) {
if (row.size() == 1) {
total++;
} else if (row.size() == 2) {
split++;
}
- count++;
}
return (double)split / total;
}