blob: a57a1a38223fb1b890d7fd62e08b072be72e38bc [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 = [
29 '//frc971/control_loops:state_feedback_loop',
30 ],
31)
Tyler Chatow2737d2a2017-02-08 21:20:51 -080032
33cc_library(
34 name = 'shooter',
35 visibility = ['//visibility:public'],
36 srcs = [
37 'shooter.cc',
38 ],
39 hdrs = [
40 'shooter.h',
41 ],
42 deps = [
43 ':shooter_plants',
44 '//aos/common/controls:control_loop',
Austin Schuh169f5f22017-02-18 16:31:13 -080045 '//third_party/eigen',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080046 '//y2017/control_loops/superstructure:superstructure_queue',
47 ],
48)