blob: 53042070b7b1a7d45170899f9ae31361dce617d5 [file] [log] [blame]
Brian Silverman100534c2015-09-07 15:51:23 -04001package(default_visibility = ['//visibility:public'])
2
3load('/aos/build/queues', 'queue_library')
4
5queue_library(
6 name = 'logging_queue',
7 srcs = [
8 'logging.q',
9 ],
10)
11
12cc_library(
13 name = 'encoder_and_potentiometer',
14 srcs = [
15 'encoder_and_potentiometer.cc',
16 ],
17 hdrs = [
18 'encoder_and_potentiometer.h',
19 ],
20 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -050021 '//third_party/allwpilib_2016:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040022 ':dma_edge_counting',
23 '//aos/linux_code:init',
24 '//aos/common/logging',
Brian Silverman2200b2c2015-11-29 05:59:28 +000025 '//aos/common:mutex',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -050026 ':dma',
Brian Silverman100534c2015-09-07 15:51:23 -040027 ],
28)
29
30cc_library(
31 name = 'dma_edge_counting',
32 srcs = [
33 'dma_edge_counting.cc',
34 ],
35 hdrs = [
36 'dma_edge_counting.h',
37 ],
38 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -050039 '//third_party/allwpilib_2016:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040040 '//aos/common/logging',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -050041 ':dma',
Brian Silverman100534c2015-09-07 15:51:23 -040042 ],
43)
44
45cc_library(
46 name = 'interrupt_edge_counting',
47 srcs = [
48 'interrupt_edge_counting.cc',
49 ],
50 hdrs = [
51 'interrupt_edge_counting.h',
52 ],
53 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -050054 '//third_party/allwpilib_2016:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040055 '//aos/common/logging',
56 '//aos/common:stl_mutex',
57 '//aos/common:time',
58 '//aos/linux_code:init',
59 ],
60)
61
62cc_library(
63 name = 'buffered_pcm',
64 srcs = [
65 'buffered_solenoid.cc',
66 'buffered_pcm.cc',
67 ],
68 hdrs = [
69 'buffered_solenoid.h',
70 'buffered_pcm.h',
71 ],
72 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -050073 '//third_party/allwpilib_2016:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040074 '//aos/common/logging',
75 ],
76)
77
78cc_library(
79 name = 'gyro_interface',
80 srcs = [
81 'gyro_interface.cc',
82 ],
83 hdrs = [
84 'gyro_interface.h',
85 ],
86 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -050087 '//third_party/allwpilib_2016:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040088 '//aos/common/logging',
Brian Silvermanedacaa72015-12-20 18:25:27 -050089 '//aos/common:time',
Brian Silverman100534c2015-09-07 15:51:23 -040090 ],
91)
92
93cc_library(
94 name = 'gyro_sender',
95 srcs = [
96 'gyro_sender.cc',
97 ],
98 hdrs = [
99 'gyro_sender.h',
100 ],
101 deps = [
Brian Silverman100534c2015-09-07 15:51:23 -0400102 ':gyro_interface',
Philipp Schrader29d54f22016-04-02 22:14:48 +0000103 '//frc971/queues:gyro',
104 '//frc971/zeroing:averager',
Brian Silverman100534c2015-09-07 15:51:23 -0400105 '//aos/common/logging',
106 '//aos/common/logging:queue_logging',
107 '//aos/common/util:phased_loop',
108 '//aos/common/messages:robot_state',
109 '//aos/linux_code:init',
110 '//aos/common:time',
111 ],
112)
113
114cc_library(
Comran Morshed33ad1692015-12-06 18:53:02 +0000115 name = 'lpd8806',
116 srcs = [
117 'LPD8806.cc',
118 ],
119 hdrs = [
120 'LPD8806.h',
121 ],
122 deps = [
123 '//aos/common:mutex',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500124 '//third_party/allwpilib_2016:wpilib',
Comran Morshed33ad1692015-12-06 18:53:02 +0000125 '//frc971/queues:gyro',
126 '//aos/common:time',
127 ],
128)
129
130cc_library(
Brian Silverman100534c2015-09-07 15:51:23 -0400131 name = 'loop_output_handler',
132 srcs = [
133 'loop_output_handler.cc',
134 ],
135 hdrs = [
136 'loop_output_handler.h',
137 ],
138 deps = [
139 '//aos/common:scoped_fd',
140 '//aos/linux_code:init',
141 '//aos/common:time',
142 '//aos/common/util:log_interval',
143 '//aos/common/messages:robot_state',
144 ],
145)
146
147cc_library(
148 name = 'joystick_sender',
149 srcs = [
150 'joystick_sender.cc',
151 ],
152 hdrs = [
153 'joystick_sender.h',
154 ],
155 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500156 '//third_party/allwpilib_2016:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -0400157 '//aos/common/messages:robot_state',
158 '//aos/linux_code:init',
159 '//aos/common/network:team_number',
160 '//aos/common/logging:queue_logging',
161 ],
162)
Brian Silverman811f8ec2015-12-06 01:29:42 -0500163
164cc_library(
165 name = 'wpilib_interface',
166 srcs = [
167 'wpilib_interface.cc',
168 ],
169 hdrs = [
170 'wpilib_interface.h',
171 ],
172 deps = [
173 '//aos/common/messages:robot_state',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500174 '//third_party/allwpilib_2016:wpilib',
Brian Silverman811f8ec2015-12-06 01:29:42 -0500175 '//aos/common/logging:queue_logging',
Brian Silverman39b339e2016-01-03 13:24:22 -0800176 ],
177)
178
179queue_library(
180 name = 'pdp_values',
181 srcs = [
182 'pdp_values.q',
Brian Silverman425492b2015-12-30 15:23:55 -0800183 ],
184)
185
186cc_library(
187 name = 'pdp_fetcher',
188 srcs = [
189 'pdp_fetcher.cc',
190 ],
191 hdrs = [
192 'pdp_fetcher.h',
193 ],
194 deps = [
Brian Silverman39b339e2016-01-03 13:24:22 -0800195 ':pdp_values',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500196 '//third_party/allwpilib_2016:wpilib',
Brian Silverman425492b2015-12-30 15:23:55 -0800197 '//aos/common/logging:queue_logging',
198 '//aos/linux_code:init',
Brian Silverman25ff5052016-01-02 14:13:46 -0800199 '//aos/common/util:phased_loop',
Brian Silverman811f8ec2015-12-06 01:29:42 -0500200 ],
201)
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800202
203cc_library(
204 name = 'wpilib_robot_base',
205 hdrs = [
206 'wpilib_robot_base.h',
207 ],
208 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500209 '//third_party/allwpilib_2016:wpilib',
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800210 ],
211)
Brian Silverman5f17a972016-02-28 01:49:32 -0500212
213queue_library(
214 name = 'imu_queue',
215 srcs = [
216 'imu.q',
217 ],
218)
219
220cc_library(
221 name = 'ADIS16448',
222 hdrs = [
223 'ADIS16448.h',
224 ],
225 srcs = [
226 'ADIS16448.cc',
227 ],
228 deps = [
Philipp Schrader29d54f22016-04-02 22:14:48 +0000229 ':imu_queue',
Brian Silverman5f17a972016-02-28 01:49:32 -0500230 '//aos/common/logging',
231 '//aos/common/logging:queue_logging',
232 '//aos/common:time',
233 '//aos/linux_code:init',
Philipp Schrader29d54f22016-04-02 22:14:48 +0000234 '//frc971/zeroing:averager',
235 '//third_party/allwpilib_2016:wpilib',
Brian Silverman5f17a972016-02-28 01:49:32 -0500236 ],
237)
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500238
239cc_library(
240 name = 'dma',
241 hdrs = [
242 'dma.h',
243 ],
244 srcs = [
245 'dma.cc',
246 ],
247 deps = [
248 '//third_party/allwpilib_2016:wpilib',
249 ],
250)