Add 2023 wrist python codegen
Signed-off-by: milind-u <milind.upadhyay@gmail.com>
Change-Id: Id6aec917eaa81cbafec0d907145d0d0abd5533fe
diff --git a/y2023/control_loops/superstructure/wrist/BUILD b/y2023/control_loops/superstructure/wrist/BUILD
new file mode 100644
index 0000000..694d95f
--- /dev/null
+++ b/y2023/control_loops/superstructure/wrist/BUILD
@@ -0,0 +1,34 @@
+package(default_visibility = ["//y2023:__subpackages__"])
+
+genrule(
+ name = "genrule_wrist",
+ outs = [
+ "wrist_plant.h",
+ "wrist_plant.cc",
+ "integral_wrist_plant.h",
+ "integral_wrist_plant.cc",
+ ],
+ cmd = "$(location //y2023/control_loops/python:wrist) $(OUTS)",
+ target_compatible_with = ["@platforms//os:linux"],
+ tools = [
+ "//y2023/control_loops/python:wrist",
+ ],
+)
+
+cc_library(
+ name = "wrist_plants",
+ srcs = [
+ "integral_wrist_plant.cc",
+ "wrist_plant.cc",
+ ],
+ hdrs = [
+ "integral_wrist_plant.h",
+ "wrist_plant.h",
+ ],
+ target_compatible_with = ["@platforms//os:linux"],
+ visibility = ["//visibility:public"],
+ deps = [
+ "//frc971/control_loops:hybrid_state_feedback_loop",
+ "//frc971/control_loops:state_feedback_loop",
+ ],
+)