blob: cb351c9935fb845441236027414ee6cb80a76e1e [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001package(default_visibility = ["//visibility:public"])
Tyler Chatow2737d2a2017-02-08 21:20:51 -08002
Austin Schuh48d60c12017-02-04 21:58:58 -08003genrule(
Alex Perrycb7da4b2019-08-28 19:35:56 -07004 name = "genrule_shooter",
5 outs = [
6 "shooter_plant.h",
7 "shooter_plant.cc",
8 "shooter_integral_plant.h",
9 "shooter_integral_plant.cc",
10 ],
11 cmd = "$(location //y2017/control_loops/python:shooter) $(OUTS)",
Philipp Schraderdada1072020-11-24 11:34:46 -080012 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070013 tools = [
14 "//y2017/control_loops/python:shooter",
15 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080016)
17
18cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070019 name = "shooter_plants",
20 srcs = [
21 "shooter_integral_plant.cc",
22 "shooter_plant.cc",
23 ],
24 hdrs = [
25 "shooter_integral_plant.h",
26 "shooter_plant.h",
27 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080028 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070029 visibility = ["//visibility:public"],
30 deps = [
31 "//frc971/control_loops:hybrid_state_feedback_loop",
32 "//frc971/control_loops:state_feedback_loop",
33 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080034)
Tyler Chatow2737d2a2017-02-08 21:20:51 -080035
36cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070037 name = "shooter",
38 srcs = [
39 "shooter.cc",
40 ],
41 hdrs = [
42 "shooter.h",
43 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080044 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070045 visibility = ["//visibility:public"],
46 deps = [
47 ":shooter_plants",
James Kuszmaul61750662021-06-21 21:32:33 -070048 "//frc971/control_loops:control_loop",
Alex Perrycb7da4b2019-08-28 19:35:56 -070049 "//frc971/control_loops:control_loops_fbs",
50 "//frc971/control_loops:profiled_subsystem_fbs",
51 "//y2017/control_loops/superstructure:superstructure_goal_fbs",
52 "//y2017/control_loops/superstructure:superstructure_position_fbs",
53 "//y2017/control_loops/superstructure:superstructure_status_fbs",
54 "@org_tuxfamily_eigen//:eigen",
55 ],
Tyler Chatow2737d2a2017-02-08 21:20:51 -080056)