Henry Speiser | 55aa3ba | 2022-02-21 23:21:12 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//y2022:__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 //y2022/control_loops/python:turret) $(OUTS)", |
| 12 | target_compatible_with = ["@platforms//os:linux"], |
| 13 | tools = [ |
| 14 | "//y2022/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 | ) |
James Kuszmaul | 84083f4 | 2022-02-27 17:24:38 -0800 | [diff] [blame] | 35 | |
| 36 | cc_library( |
| 37 | name = "aiming", |
| 38 | srcs = ["aiming.cc"], |
| 39 | hdrs = ["aiming.h"], |
| 40 | target_compatible_with = ["@platforms//os:linux"], |
| 41 | deps = [ |
| 42 | "//aos:flatbuffers", |
| 43 | "//frc971/control_loops:control_loops_fbs", |
| 44 | "//frc971/control_loops:pose", |
| 45 | "//frc971/control_loops:profiled_subsystem_fbs", |
| 46 | "//frc971/control_loops/aiming", |
| 47 | "//frc971/control_loops/drivetrain:drivetrain_status_fbs", |
| 48 | "//y2022:constants", |
| 49 | "//y2022/control_loops/drivetrain:drivetrain_base", |
| 50 | "//y2022/control_loops/superstructure:superstructure_status_fbs", |
| 51 | ], |
| 52 | ) |