blob: 16328500f9cc7c62a2b63e19f828d64dea36792f [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',
Austin Schuhcd3237a2017-02-18 14:19:26 -080029 '//y2017/control_loops/superstructure/indexer',
Adam Snaider79900c22017-02-08 20:23:15 -080030 '//y2017/control_loops/superstructure/intake',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080031 '//y2017/control_loops/superstructure/shooter',
Austin Schuhcd3237a2017-02-18 14:19:26 -080032 '//y2017/control_loops/superstructure/turret',
Austin Schuh87c10632017-02-05 19:02:17 -080033 '//y2017:constants',
34 ],
35)
Adam Snaidercfe13062017-02-05 18:23:09 -080036
37cc_test(
38 name = 'superstructure_lib_test',
39 srcs = [
40 'superstructure_lib_test.cc',
41 ],
42 deps = [
43 ':superstructure_queue',
44 ':superstructure_lib',
Adam Snaidercfe13062017-02-05 18:23:09 -080045 '//aos/common/controls:control_loop_test',
46 '//aos/common:math',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080047 '//aos/common:queues',
Adam Snaidercfe13062017-02-05 18:23:09 -080048 '//aos/common:time',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080049 '//aos/testing:googletest',
Adam Snaidercfe13062017-02-05 18:23:09 -080050 '//frc971/control_loops:position_sensor_sim',
51 '//frc971/control_loops:team_number_test_environment',
Adam Snaider79900c22017-02-08 20:23:15 -080052 '//y2017/control_loops/superstructure/hood:hood_plants',
Austin Schuhcd3237a2017-02-18 14:19:26 -080053 '//y2017/control_loops/superstructure/indexer:indexer_plants',
Adam Snaider79900c22017-02-08 20:23:15 -080054 '//y2017/control_loops/superstructure/intake:intake_plants',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080055 '//y2017/control_loops/superstructure/shooter:shooter_plants',
56 '//y2017/control_loops/superstructure/turret:turret_plants',
Adam Snaidercfe13062017-02-05 18:23:09 -080057 ],
58)
Austin Schuh7b9a3ba2017-02-19 23:11:45 -080059
60cc_binary(
61 name = 'superstructure',
62 srcs = [
63 'superstructure_main.cc',
64 ],
65 deps = [
66 '//aos/linux_code:init',
67 ':superstructure_lib',
68 ':superstructure_queue',
69 ],
70)