Move over to ABSL logging and flags.
Removes gperftools too since that wants gflags.
Here come the fireworks.
Change-Id: I79cb7bcf60f1047fbfa28bfffc21a0fd692e4b1c
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2020/control_loops/drivetrain/localizer.cc b/y2020/control_loops/drivetrain/localizer.cc
index 0943b28..f8518f3 100644
--- a/y2020/control_loops/drivetrain/localizer.cc
+++ b/y2020/control_loops/drivetrain/localizer.cc
@@ -1,10 +1,12 @@
#include "y2020/control_loops/drivetrain/localizer.h"
+#include "absl/flags/flag.h"
+
#include "y2020/constants.h"
-DEFINE_bool(send_empty_debug, false,
- "If true, send LocalizerDebug messages on every tick, even if "
- "they would be empty.");
+ABSL_FLAG(bool, send_empty_debug, false,
+ "If true, send LocalizerDebug messages on every tick, even if "
+ "they would be empty.");
namespace y2020::control_loops::drivetrain {
@@ -181,7 +183,7 @@
}
}
}
- if (FLAGS_send_empty_debug || !debug_offsets.empty()) {
+ if (absl::GetFlag(FLAGS_send_empty_debug) || !debug_offsets.empty()) {
const auto vector_offset =
builder.fbb()->CreateVector(debug_offsets.data(), debug_offsets.size());
const auto rejections_offset =