blob: 797791f0a4f581b386a865323f760086b094f9c8 [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',
Austin Schuhd5ccb862017-03-11 22:06:36 -080028 '//y2017/control_loops/superstructure/column',
Austin Schuh87c10632017-02-05 19:02:17 -080029 '//y2017/control_loops/superstructure/hood',
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 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',
Austin Schuhd5ccb862017-03-11 22:06:36 -080051 '//y2017/control_loops/superstructure/column:column_plants',
Adam Snaider79900c22017-02-08 20:23:15 -080052 '//y2017/control_loops/superstructure/hood:hood_plants',
Adam Snaider79900c22017-02-08 20:23:15 -080053 '//y2017/control_loops/superstructure/intake:intake_plants',
Tyler Chatow2737d2a2017-02-08 21:20:51 -080054 '//y2017/control_loops/superstructure/shooter:shooter_plants',
Adam Snaidercfe13062017-02-05 18:23:09 -080055 ],
56)
Austin Schuh7b9a3ba2017-02-19 23:11:45 -080057
58cc_binary(
59 name = 'superstructure',
60 srcs = [
61 'superstructure_main.cc',
62 ],
63 deps = [
64 '//aos/linux_code:init',
65 ':superstructure_lib',
66 ':superstructure_queue',
67 ],
68)
Parker Schuhfea48582017-03-11 20:15:32 -080069
70cc_library(
71 name = 'vision_time_adjuster',
72 hdrs = [
73 'vision_time_adjuster.h',
74 ],
75 srcs = [
76 'vision_time_adjuster.cc',
77 ],
78 deps = [
79 ':superstructure_queue',
80 '//aos/common:ring_buffer',
81 '//frc971/control_loops/drivetrain:drivetrain_queue',
Austin Schuhac76bb32017-03-22 22:34:26 -070082 '//y2017/control_loops/drivetrain:polydrivetrain_plants',
Parker Schuhfea48582017-03-11 20:15:32 -080083 '//y2017/vision:vision_queue',
84 ],
85)
86
87cc_test(
88 name = 'vision_time_adjuster_test',
89 srcs = [
90 'vision_time_adjuster_test.cc',
91 ],
92 deps = [
93 ':vision_time_adjuster',
94 '//aos/common:time',
95 '//aos/testing:googletest',
96 '//aos/testing:test_shm',
97 ],
98)