Add Drivetrain Position and CANPosition to Logging Site
Signed-off-by: Niko Sohmers <nikolai@sohmers.com>
Change-Id: I55def05b6d274ba54d07eec766cf12177135e1d9
diff --git a/frc971/control_loops/BUILD b/frc971/control_loops/BUILD
index 31b245b..c03a964 100644
--- a/frc971/control_loops/BUILD
+++ b/frc971/control_loops/BUILD
@@ -199,6 +199,13 @@
],
)
+flatbuffer_ts_library(
+ name = "can_falcon_ts_fbs",
+ srcs = [
+ "can_falcon.fbs",
+ ],
+)
+
flatbuffer_cc_library(
name = "can_falcon_fbs",
srcs = [
diff --git a/frc971/control_loops/drivetrain/BUILD b/frc971/control_loops/drivetrain/BUILD
index fdbc1dc..e631799 100644
--- a/frc971/control_loops/drivetrain/BUILD
+++ b/frc971/control_loops/drivetrain/BUILD
@@ -71,6 +71,19 @@
deps = ["//frc971/control_loops:control_loops_ts_fbs"],
)
+flatbuffer_ts_library(
+ name = "drivetrain_position_ts_fbs",
+ srcs = ["drivetrain_position.fbs"],
+ target_compatible_with = ["@platforms//os:linux"],
+)
+
+flatbuffer_ts_library(
+ name = "drivetrain_can_position_ts_fbs",
+ srcs = ["drivetrain_can_position.fbs"],
+ target_compatible_with = ["@platforms//os:linux"],
+ deps = ["//frc971/control_loops:can_falcon_ts_fbs"],
+)
+
genrule(
name = "drivetrain_goal_float_fbs_generated",
srcs = ["drivetrain_goal.fbs"],