Set up control loops for y2024_swerve testing
Change-Id: Ic80503781a3b92ee711a1c8b2389fa194eacc31d
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/y2024_swerve/control_loops/drivetrain/BUILD b/y2024_swerve/control_loops/drivetrain/BUILD
new file mode 100644
index 0000000..544cf49
--- /dev/null
+++ b/y2024_swerve/control_loops/drivetrain/BUILD
@@ -0,0 +1,22 @@
+genrule(
+ name = "genrule_rotation",
+ outs = [
+ "rotation_plant.h",
+ "rotation_plant.cc",
+ "rotation_plant.json",
+ "integral_rotation_plant.h",
+ "integral_rotation_plant.cc",
+ "integral_rotation_plant.json",
+ ],
+ cmd = "$(location //y2024_swerve/control_loops/python:rotation) $(OUTS)",
+ target_compatible_with = ["@platforms//os:linux"],
+ tools = [
+ "//y2024_swerve/control_loops/python:rotation",
+ ],
+)
+
+filegroup(
+ name = "rotation_json",
+ srcs = ["integral_rotation_plant.json"],
+ visibility = ["//visibility:public"],
+)