blob: 6ea778a6e4801c0976d62ede303b47a966db9d0e [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 = [
102 '//frc971/queues:gyro',
103 ':gyro_interface',
104 '//aos/common/logging',
105 '//aos/common/logging:queue_logging',
106 '//aos/common/util:phased_loop',
107 '//aos/common/messages:robot_state',
108 '//aos/linux_code:init',
109 '//aos/common:time',
110 ],
111)
112
113cc_library(
Comran Morshed33ad1692015-12-06 18:53:02 +0000114 name = 'lpd8806',
115 srcs = [
116 'LPD8806.cc',
117 ],
118 hdrs = [
119 'LPD8806.h',
120 ],
121 deps = [
122 '//aos/common:mutex',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500123 '//third_party/allwpilib_2016:wpilib',
Comran Morshed33ad1692015-12-06 18:53:02 +0000124 '//frc971/queues:gyro',
125 '//aos/common:time',
126 ],
127)
128
129cc_library(
Brian Silverman100534c2015-09-07 15:51:23 -0400130 name = 'loop_output_handler',
131 srcs = [
132 'loop_output_handler.cc',
133 ],
134 hdrs = [
135 'loop_output_handler.h',
136 ],
137 deps = [
138 '//aos/common:scoped_fd',
139 '//aos/linux_code:init',
140 '//aos/common:time',
141 '//aos/common/util:log_interval',
142 '//aos/common/messages:robot_state',
143 ],
144)
145
146cc_library(
147 name = 'joystick_sender',
148 srcs = [
149 'joystick_sender.cc',
150 ],
151 hdrs = [
152 'joystick_sender.h',
153 ],
154 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500155 '//third_party/allwpilib_2016:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -0400156 '//aos/common/messages:robot_state',
157 '//aos/linux_code:init',
158 '//aos/common/network:team_number',
159 '//aos/common/logging:queue_logging',
160 ],
161)
Brian Silverman811f8ec2015-12-06 01:29:42 -0500162
163cc_library(
164 name = 'wpilib_interface',
165 srcs = [
166 'wpilib_interface.cc',
167 ],
168 hdrs = [
169 'wpilib_interface.h',
170 ],
171 deps = [
172 '//aos/common/messages:robot_state',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500173 '//third_party/allwpilib_2016:wpilib',
Brian Silverman811f8ec2015-12-06 01:29:42 -0500174 '//aos/common/logging:queue_logging',
Brian Silverman39b339e2016-01-03 13:24:22 -0800175 ],
176)
177
178queue_library(
179 name = 'pdp_values',
180 srcs = [
181 'pdp_values.q',
Brian Silverman425492b2015-12-30 15:23:55 -0800182 ],
183)
184
185cc_library(
186 name = 'pdp_fetcher',
187 srcs = [
188 'pdp_fetcher.cc',
189 ],
190 hdrs = [
191 'pdp_fetcher.h',
192 ],
193 deps = [
Brian Silverman39b339e2016-01-03 13:24:22 -0800194 ':pdp_values',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500195 '//third_party/allwpilib_2016:wpilib',
Brian Silverman425492b2015-12-30 15:23:55 -0800196 '//aos/common/logging:queue_logging',
197 '//aos/linux_code:init',
Brian Silverman25ff5052016-01-02 14:13:46 -0800198 '//aos/common/util:phased_loop',
Brian Silverman811f8ec2015-12-06 01:29:42 -0500199 ],
200)
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800201
202cc_library(
203 name = 'wpilib_robot_base',
204 hdrs = [
205 'wpilib_robot_base.h',
206 ],
207 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500208 '//third_party/allwpilib_2016:wpilib',
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800209 ],
210)
Brian Silverman5f17a972016-02-28 01:49:32 -0500211
212queue_library(
213 name = 'imu_queue',
214 srcs = [
215 'imu.q',
216 ],
217)
218
219cc_library(
220 name = 'ADIS16448',
221 hdrs = [
222 'ADIS16448.h',
223 ],
224 srcs = [
225 'ADIS16448.cc',
226 ],
227 deps = [
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500228 '//third_party/allwpilib_2016:wpilib',
Brian Silverman5f17a972016-02-28 01:49:32 -0500229 '//aos/common/logging',
230 '//aos/common/logging:queue_logging',
231 '//aos/common:time',
232 '//aos/linux_code:init',
233 ':imu_queue',
234 ],
235)
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500236
237cc_library(
238 name = 'dma',
239 hdrs = [
240 'dma.h',
241 ],
242 srcs = [
243 'dma.cc',
244 ],
245 deps = [
246 '//third_party/allwpilib_2016:wpilib',
247 ],
248)