Move all the constants to glog
Change-Id: I6cbe4cdb0a4bb31442dda9cb7d2161ff10c371cb
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
diff --git a/y2020/BUILD b/y2020/BUILD
index 61987c9..7da0bc7 100644
--- a/y2020/BUILD
+++ b/y2020/BUILD
@@ -63,7 +63,6 @@
target_compatible_with = ["@platforms//os:linux"],
visibility = ["//visibility:public"],
deps = [
- "//aos/logging",
"//aos/network:team_number",
"//aos/stl_mutex",
"//frc971:constants",
@@ -76,6 +75,7 @@
"//y2020/control_loops/superstructure/hood:hood_plants",
"//y2020/control_loops/superstructure/intake:intake_plants",
"//y2020/control_loops/superstructure/turret:turret_plants",
+ "@com_github_google_glog//:glog",
"@com_google_absl//absl/base",
],
)
diff --git a/y2020/constants.cc b/y2020/constants.cc
index e418831..9ad1bd4 100644
--- a/y2020/constants.cc
+++ b/y2020/constants.cc
@@ -8,9 +8,9 @@
#endif
#include "absl/base/call_once.h"
-#include "aos/logging/logging.h"
#include "aos/network/team_number.h"
#include "aos/stl_mutex/stl_mutex.h"
+#include "glog/logging.h"
#include "y2020/control_loops/superstructure/control_panel/integral_control_panel_plant.h"
#include "y2020/control_loops/superstructure/hood/integral_hood_plant.h"
#include "y2020/control_loops/superstructure/intake/integral_intake_plant.h"
@@ -178,7 +178,7 @@
break;
default:
- AOS_LOG(FATAL, "unknown team #%" PRIu16 "\n", team);
+ LOG(FATAL) << "unknown team: " << team;
}
return r;
@@ -188,7 +188,7 @@
void DoGetValues() {
uint16_t team = ::aos::network::GetTeamNumber();
- AOS_LOG(INFO, "creating a Constants for team %" PRIu16 "\n", team);
+ LOG(INFO) << "creating a Constants for team: " << team;
values = DoGetValuesForTeam(team);
}