Ravago Jones | 2e8ac66 | 2023-07-01 22:57:02 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//y2023:__subpackages__"]) |
| 2 | |
| 3 | genrule( |
| 4 | name = "genrule_turret", |
| 5 | outs = [ |
| 6 | "turret_plant.h", |
| 7 | "turret_plant.cc", |
| 8 | "integral_turret_plant.h", |
| 9 | "integral_turret_plant.cc", |
| 10 | ], |
| 11 | cmd = "$(location //y2023/control_loops/python:turret) $(OUTS)", |
| 12 | target_compatible_with = ["@platforms//os:linux"], |
| 13 | tools = [ |
| 14 | "//y2023/control_loops/python:turret", |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | cc_library( |
| 19 | name = "turret_plants", |
| 20 | srcs = [ |
| 21 | "integral_turret_plant.cc", |
| 22 | "turret_plant.cc", |
| 23 | ], |
| 24 | hdrs = [ |
| 25 | "integral_turret_plant.h", |
| 26 | "turret_plant.h", |
| 27 | ], |
| 28 | target_compatible_with = ["@platforms//os:linux"], |
| 29 | visibility = ["//visibility:public"], |
| 30 | deps = [ |
| 31 | "//frc971/control_loops:hybrid_state_feedback_loop", |
| 32 | "//frc971/control_loops:state_feedback_loop", |
| 33 | ], |
| 34 | ) |