blob: 6c8291d8f971c4b065127be5a419afee9963fdae [file] [log] [blame]
Diana Vandenberg69899ed2017-01-28 16:57:54 -08001package(default_visibility = ['//visibility:public'])
2
3load('/aos/build/queues', 'queue_library')
4
5queue_library(
Campbell Crowley75026292017-02-04 21:46:19 -08006 name = 'superstructure_queue',
Diana Vandenberg69899ed2017-01-28 16:57:54 -08007 srcs = [
Campbell Crowley75026292017-02-04 21:46:19 -08008 'superstructure.q',
Diana Vandenberg69899ed2017-01-28 16:57:54 -08009 ],
10 deps = [
11 '//aos/common/controls:control_loop_queues',
Austin Schuh3634ed32017-02-05 16:28:49 -080012 '//frc971/control_loops:profiled_subsystem_queue',
Diana Vandenberg69899ed2017-01-28 16:57:54 -080013 '//frc971/control_loops:queues',
14 ],
15)
Austin Schuh87c10632017-02-05 19:02:17 -080016
17cc_library(
18 name = 'superstructure_lib',
19 srcs = [
20 'superstructure.cc',
21 ],
22 hdrs = [
23 'superstructure.h',
24 ],
25 deps = [
26 ':superstructure_queue',
27 '//aos/common/controls:control_loop',
28 '//y2017/control_loops/superstructure/hood',
Adam Snaider79900c22017-02-08 20:23:15 -080029 '//y2017/control_loops/superstructure/turret',
30 '//y2017/control_loops/superstructure/intake',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080031 '//y2017/control_loops/superstructure/shooter',
Austin Schuh87c10632017-02-05 19:02:17 -080032 '//y2017:constants',
33 ],
34)
Adam Snaidercfe13062017-02-05 18:23:09 -080035
36cc_test(
37 name = 'superstructure_lib_test',
38 srcs = [
39 'superstructure_lib_test.cc',
40 ],
41 deps = [
42 ':superstructure_queue',
43 ':superstructure_lib',
Adam Snaidercfe13062017-02-05 18:23:09 -080044 '//aos/common/controls:control_loop_test',
45 '//aos/common:math',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080046 '//aos/common:queues',
Adam Snaidercfe13062017-02-05 18:23:09 -080047 '//aos/common:time',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080048 '//aos/testing:googletest',
Adam Snaidercfe13062017-02-05 18:23:09 -080049 '//frc971/control_loops:position_sensor_sim',
50 '//frc971/control_loops:team_number_test_environment',
Adam Snaider79900c22017-02-08 20:23:15 -080051 '//y2017/control_loops/superstructure/hood:hood_plants',
Adam Snaider79900c22017-02-08 20:23:15 -080052 '//y2017/control_loops/superstructure/intake:intake_plants',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080053 '//y2017/control_loops/superstructure/shooter:shooter_plants',
54 '//y2017/control_loops/superstructure/turret:turret_plants',
Adam Snaidercfe13062017-02-05 18:23:09 -080055 ],
56)