blob: d83e34b74361526076c46fbf74bbfafdb394ecd8 [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)",
12 tools = [
13 "//y2017/control_loops/python:shooter",
14 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080015)
16
17cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070018 name = "shooter_plants",
19 srcs = [
20 "shooter_integral_plant.cc",
21 "shooter_plant.cc",
22 ],
23 hdrs = [
24 "shooter_integral_plant.h",
25 "shooter_plant.h",
26 ],
27 visibility = ["//visibility:public"],
28 deps = [
29 "//frc971/control_loops:hybrid_state_feedback_loop",
30 "//frc971/control_loops:state_feedback_loop",
31 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080032)
Tyler Chatow2737d2a2017-02-08 21:20:51 -080033
34cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070035 name = "shooter",
36 srcs = [
37 "shooter.cc",
38 ],
39 hdrs = [
40 "shooter.h",
41 ],
42 visibility = ["//visibility:public"],
43 deps = [
44 ":shooter_plants",
45 "//aos/controls:control_loop",
46 "//frc971/control_loops:control_loops_fbs",
47 "//frc971/control_loops:profiled_subsystem_fbs",
48 "//y2017/control_loops/superstructure:superstructure_goal_fbs",
49 "//y2017/control_loops/superstructure:superstructure_position_fbs",
50 "//y2017/control_loops/superstructure:superstructure_status_fbs",
51 "@org_tuxfamily_eigen//:eigen",
52 ],
Tyler Chatow2737d2a2017-02-08 21:20:51 -080053)