Print which auto route we take
Very helpful for making sure the right code ran.
Change-Id: I6b472b3cad1dae9efab526588f3ded02c1469e25
diff --git a/y2020/actors/autonomous_actor.cc b/y2020/actors/autonomous_actor.cc
index 92cb7cb..022998d 100644
--- a/y2020/actors/autonomous_actor.cc
+++ b/y2020/actors/autonomous_actor.cc
@@ -113,15 +113,19 @@
flatbuffers::Offset<frc971::MultiSpline> target_spline;
if (path_fetcher_->alliance() == y2020::vision::Alliance::kRed) {
if (path_fetcher_->letter() == y2020::vision::Letter::kA) {
+ LOG(INFO) << "Red A";
target_spline = auto_splines_.SplineRedA(builder);
} else {
+ LOG(INFO) << "Red B";
CHECK(path_fetcher_->letter() == y2020::vision::Letter::kB);
target_spline = auto_splines_.SplineRedB(builder);
}
} else {
if (path_fetcher_->letter() == y2020::vision::Letter::kA) {
+ LOG(INFO) << "Blue A";
target_spline = auto_splines_.SplineBlueA(builder);
} else {
+ LOG(INFO) << "Blue B";
CHECK(path_fetcher_->letter() == y2020::vision::Letter::kB);
target_spline = auto_splines_.SplineBlueB(builder);
}