Add fbs files and config modifications for localizer
Creates a LocalizerStatus channel for the status, a LocalizerOutput for
the minimal output to be forwarded to the roborio for it to correct its
localizer, and adds an IMUValuesBatch channel on an imu pi.
Does not yet remove the old IMUValuesBatch channel in y2022.
Change-Id: I217f6a9c1f482c6db1a36b8a37eabd0e7bb7e2a4
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/y2022/control_loops/localizer/BUILD b/y2022/control_loops/localizer/BUILD
new file mode 100644
index 0000000..d5e642f
--- /dev/null
+++ b/y2022/control_loops/localizer/BUILD
@@ -0,0 +1,33 @@
+load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
+load("//aos:flatbuffers.bzl", "cc_static_flatbuffer")
+
+flatbuffer_cc_library(
+ name = "localizer_output_fbs",
+ srcs = [
+ "localizer_output.fbs",
+ ],
+ gen_reflections = True,
+ target_compatible_with = ["@platforms//os:linux"],
+ visibility = ["//visibility:public"],
+)
+
+flatbuffer_cc_library(
+ name = "localizer_status_fbs",
+ srcs = [
+ "localizer_status.fbs",
+ ],
+ gen_reflections = True,
+ includes = [
+ "//frc971/control_loops:control_loops_fbs_includes",
+ "//frc971/control_loops/drivetrain:drivetrain_status_fbs_includes",
+ ],
+ target_compatible_with = ["@platforms//os:linux"],
+ visibility = ["//visibility:public"],
+)
+
+cc_static_flatbuffer(
+ name = "localizer_schema",
+ function = "frc971::controls::LocalizerStatusSchema",
+ target = ":localizer_status_fbs_reflection_out",
+ visibility = ["//visibility:public"],
+)