blob: 3f9b17e570a2274f8452f9291e8aebf4d546f231 [file] [log] [blame]
Tyler Chatow2737d2a2017-02-08 21:20:51 -08001package(default_visibility = ['//visibility:public'])
2
Austin Schuh48d60c12017-02-04 21:58:58 -08003genrule(
4 name = 'genrule_shooter',
Austin Schuh48d60c12017-02-04 21:58:58 -08005 cmd = '$(location //y2017/control_loops/python:shooter) $(OUTS)',
6 tools = [
7 '//y2017/control_loops/python:shooter',
8 ],
9 outs = [
10 'shooter_plant.h',
11 'shooter_plant.cc',
12 'shooter_integral_plant.h',
13 'shooter_integral_plant.cc',
14 ],
15)
16
17cc_library(
18 name = 'shooter_plants',
Brian Silverman052e69d2017-02-12 16:19:55 -080019 visibility = ['//visibility:public'],
Austin Schuh48d60c12017-02-04 21:58:58 -080020 srcs = [
21 'shooter_plant.cc',
22 'shooter_integral_plant.cc',
23 ],
24 hdrs = [
25 'shooter_plant.h',
26 'shooter_integral_plant.h',
27 ],
28 deps = [
Austin Schuh4cc4fe22017-11-23 19:13:09 -080029 '//frc971/control_loops:hybrid_state_feedback_loop',
Austin Schuh48d60c12017-02-04 21:58:58 -080030 '//frc971/control_loops:state_feedback_loop',
31 ],
32)
Tyler Chatow2737d2a2017-02-08 21:20:51 -080033
34cc_library(
35 name = 'shooter',
36 visibility = ['//visibility:public'],
37 srcs = [
38 'shooter.cc',
39 ],
40 hdrs = [
41 'shooter.h',
42 ],
43 deps = [
44 ':shooter_plants',
45 '//aos/common/controls:control_loop',
Austin Schuh169f5f22017-02-18 16:31:13 -080046 '//third_party/eigen',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080047 '//y2017/control_loops/superstructure:superstructure_queue',
48 ],
49)