milind-u | f8bd177 | 2023-02-20 16:27:25 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//y2023:__subpackages__"]) |
| 2 | |
| 3 | genrule( |
| 4 | name = "genrule_wrist", |
| 5 | outs = [ |
| 6 | "wrist_plant.h", |
| 7 | "wrist_plant.cc", |
James Kuszmaul | 630ab1d | 2024-01-09 16:38:57 -0800 | [diff] [blame] | 8 | "wrist_plant.json", |
milind-u | f8bd177 | 2023-02-20 16:27:25 -0800 | [diff] [blame] | 9 | "integral_wrist_plant.h", |
| 10 | "integral_wrist_plant.cc", |
James Kuszmaul | 630ab1d | 2024-01-09 16:38:57 -0800 | [diff] [blame] | 11 | "integral_wrist_plant.json", |
milind-u | f8bd177 | 2023-02-20 16:27:25 -0800 | [diff] [blame] | 12 | ], |
| 13 | cmd = "$(location //y2023/control_loops/python:wrist) $(OUTS)", |
| 14 | target_compatible_with = ["@platforms//os:linux"], |
| 15 | tools = [ |
| 16 | "//y2023/control_loops/python:wrist", |
| 17 | ], |
| 18 | ) |
| 19 | |
| 20 | cc_library( |
| 21 | name = "wrist_plants", |
| 22 | srcs = [ |
| 23 | "integral_wrist_plant.cc", |
| 24 | "wrist_plant.cc", |
| 25 | ], |
| 26 | hdrs = [ |
| 27 | "integral_wrist_plant.h", |
| 28 | "wrist_plant.h", |
| 29 | ], |
| 30 | target_compatible_with = ["@platforms//os:linux"], |
| 31 | visibility = ["//visibility:public"], |
| 32 | deps = [ |
| 33 | "//frc971/control_loops:hybrid_state_feedback_loop", |
| 34 | "//frc971/control_loops:state_feedback_loop", |
| 35 | ], |
| 36 | ) |
James Kuszmaul | 630ab1d | 2024-01-09 16:38:57 -0800 | [diff] [blame] | 37 | |
| 38 | filegroup( |
| 39 | name = "wrist_json", |
| 40 | srcs = ["integral_wrist_plant.json"], |
| 41 | visibility = ["//visibility:public"], |
| 42 | ) |