blob: 910de08dbbefb2201b97e8cc3550c9f93ecc17fa [file] [log] [blame]
Brian Silverman003a4732018-03-11 14:02:15 -07001package(default_visibility = ["//visibility:public"])
Brian Silverman100534c2015-09-07 15:51:23 -04002
Brian Silverman003a4732018-03-11 14:02:15 -07003load("//aos/build:queues.bzl", "queue_library")
Brian Silverman100534c2015-09-07 15:51:23 -04004
5queue_library(
Brian Silverman003a4732018-03-11 14:02:15 -07006 name = "logging_queue",
7 srcs = [
8 "logging.q",
9 ],
Brian Silverman100534c2015-09-07 15:51:23 -040010)
11
12cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070013 name = "encoder_and_potentiometer",
14 srcs = [
15 "encoder_and_potentiometer.cc",
16 ],
17 hdrs = [
18 "encoder_and_potentiometer.h",
19 ],
20 restricted_to = ["//tools:roborio"],
21 deps = [
22 ":dma",
23 ":dma_edge_counting",
John Park33858a32018-09-28 23:05:48 -070024 "//aos/mutex:mutex",
25 "//aos/logging",
John Park398c74a2018-10-20 21:17:39 -070026 "//aos:init",
Brian Silverman003a4732018-03-11 14:02:15 -070027 "//third_party:wpilib",
28 ],
Brian Silverman100534c2015-09-07 15:51:23 -040029)
30
31cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070032 name = "dma_edge_counting",
33 srcs = [
34 "dma_edge_counting.cc",
35 ],
36 hdrs = [
37 "dma_edge_counting.h",
38 ],
39 restricted_to = ["//tools:roborio"],
40 deps = [
41 ":dma",
John Park33858a32018-09-28 23:05:48 -070042 "//aos/logging",
Brian Silverman003a4732018-03-11 14:02:15 -070043 "//third_party:wpilib",
44 ],
Brian Silverman100534c2015-09-07 15:51:23 -040045)
46
47cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070048 name = "interrupt_edge_counting",
49 srcs = [
50 "interrupt_edge_counting.cc",
51 ],
52 hdrs = [
53 "interrupt_edge_counting.h",
54 ],
55 restricted_to = ["//tools:roborio"],
56 deps = [
John Park33858a32018-09-28 23:05:48 -070057 "//aos/stl_mutex:stl_mutex",
58 "//aos/time:time",
59 "//aos/logging",
John Park398c74a2018-10-20 21:17:39 -070060 "//aos:init",
Brian Silverman003a4732018-03-11 14:02:15 -070061 "//third_party:wpilib",
62 ],
Brian Silverman100534c2015-09-07 15:51:23 -040063)
64
65cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070066 name = "buffered_pcm",
67 srcs = [
68 "buffered_pcm.cc",
69 "buffered_solenoid.cc",
70 ],
71 hdrs = [
72 "buffered_pcm.h",
73 "buffered_solenoid.h",
74 ],
75 restricted_to = ["//tools:roborio"],
76 deps = [
John Park33858a32018-09-28 23:05:48 -070077 "//aos/logging",
Brian Silverman003a4732018-03-11 14:02:15 -070078 "//third_party:wpilib",
79 ],
Brian Silverman100534c2015-09-07 15:51:23 -040080)
81
82cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070083 name = "gyro_interface",
84 srcs = [
85 "gyro_interface.cc",
86 ],
87 hdrs = [
88 "gyro_interface.h",
89 ],
90 restricted_to = ["//tools:roborio"],
91 deps = [
John Park33858a32018-09-28 23:05:48 -070092 "//aos/time:time",
93 "//aos/logging",
Brian Silverman003a4732018-03-11 14:02:15 -070094 "//third_party:wpilib",
95 ],
Brian Silverman100534c2015-09-07 15:51:23 -040096)
97
98cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070099 name = "gyro_sender",
100 srcs = [
101 "gyro_sender.cc",
102 ],
103 hdrs = [
104 "gyro_sender.h",
105 ],
106 restricted_to = ["//tools:roborio"],
107 deps = [
108 ":gyro_interface",
John Park33858a32018-09-28 23:05:48 -0700109 "//aos/time:time",
110 "//aos/logging",
111 "//aos/logging:queue_logging",
112 "//aos/robot_state:robot_state",
113 "//aos/util:phased_loop",
John Park398c74a2018-10-20 21:17:39 -0700114 "//aos:init",
Brian Silverman003a4732018-03-11 14:02:15 -0700115 "//frc971/queues:gyro",
116 "//frc971/zeroing:averager",
117 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400118)
119
120cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700121 name = "lpd8806",
122 srcs = [
123 "LPD8806.cc",
124 ],
125 hdrs = [
126 "LPD8806.h",
127 ],
128 restricted_to = ["//tools:roborio"],
129 deps = [
John Park33858a32018-09-28 23:05:48 -0700130 "//aos/mutex:mutex",
131 "//aos/time:time",
Brian Silverman003a4732018-03-11 14:02:15 -0700132 "//frc971/queues:gyro",
133 "//third_party:wpilib",
134 ],
Comran Morshed33ad1692015-12-06 18:53:02 +0000135)
136
137cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700138 name = "loop_output_handler",
139 srcs = [
140 "loop_output_handler.cc",
141 ],
142 hdrs = [
143 "loop_output_handler.h",
144 ],
145 deps = [
John Park33858a32018-09-28 23:05:48 -0700146 "//aos/scoped:scoped_fd",
147 "//aos/time:time",
148 "//aos/robot_state:robot_state",
149 "//aos/util:log_interval",
John Park398c74a2018-10-20 21:17:39 -0700150 "//aos:init",
Brian Silverman003a4732018-03-11 14:02:15 -0700151 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400152)
153
154cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700155 name = "joystick_sender",
156 srcs = [
157 "joystick_sender.cc",
158 ],
159 hdrs = [
160 "joystick_sender.h",
161 ],
162 restricted_to = ["//tools:roborio"],
163 deps = [
John Park33858a32018-09-28 23:05:48 -0700164 "//aos/logging:queue_logging",
165 "//aos/robot_state:robot_state",
166 "//aos/network:team_number",
John Park398c74a2018-10-20 21:17:39 -0700167 "//aos:init",
Brian Silverman003a4732018-03-11 14:02:15 -0700168 "//third_party:wpilib",
169 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400170)
Brian Silverman811f8ec2015-12-06 01:29:42 -0500171
172cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700173 name = "wpilib_interface",
174 srcs = [
175 "wpilib_interface.cc",
176 ],
177 hdrs = [
178 "wpilib_interface.h",
179 ],
180 restricted_to = ["//tools:roborio"],
181 deps = [
John Park33858a32018-09-28 23:05:48 -0700182 "//aos/logging:queue_logging",
183 "//aos/robot_state:robot_state",
Brian Silverman003a4732018-03-11 14:02:15 -0700184 "//third_party:wpilib",
185 ],
Brian Silverman39b339e2016-01-03 13:24:22 -0800186)
187
188queue_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700189 name = "pdp_values",
190 srcs = [
191 "pdp_values.q",
192 ],
Brian Silverman425492b2015-12-30 15:23:55 -0800193)
194
195cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700196 name = "pdp_fetcher",
197 srcs = [
198 "pdp_fetcher.cc",
199 ],
200 hdrs = [
201 "pdp_fetcher.h",
202 ],
203 restricted_to = ["//tools:roborio"],
204 deps = [
205 ":pdp_values",
John Park33858a32018-09-28 23:05:48 -0700206 "//aos/logging:queue_logging",
207 "//aos/util:phased_loop",
John Park398c74a2018-10-20 21:17:39 -0700208 "//aos:init",
Brian Silverman003a4732018-03-11 14:02:15 -0700209 "//third_party:wpilib",
210 ],
Brian Silverman811f8ec2015-12-06 01:29:42 -0500211)
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800212
213cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700214 name = "wpilib_robot_base",
215 hdrs = [
216 "wpilib_robot_base.h",
217 ],
218 restricted_to = ["//tools:roborio"],
219 deps = [
220 "//third_party:wpilib",
221 ],
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800222)
Brian Silverman5f17a972016-02-28 01:49:32 -0500223
224queue_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700225 name = "imu_queue",
226 srcs = [
227 "imu.q",
228 ],
Brian Silverman5f17a972016-02-28 01:49:32 -0500229)
230
231cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700232 name = "ADIS16448",
233 srcs = [
234 "ADIS16448.cc",
235 ],
236 hdrs = [
237 "ADIS16448.h",
238 ],
239 restricted_to = ["//tools:roborio"],
240 deps = [
241 ":imu_queue",
242 ":spi_rx_clearer",
John Park33858a32018-09-28 23:05:48 -0700243 "//aos/time:time",
244 "//aos/logging",
245 "//aos/logging:queue_logging",
246 "//aos/robot_state:robot_state",
John Park398c74a2018-10-20 21:17:39 -0700247 "//aos:init",
Brian Silverman003a4732018-03-11 14:02:15 -0700248 "//frc971/zeroing:averager",
249 "//third_party:wpilib",
250 ],
Brian Silverman5f17a972016-02-28 01:49:32 -0500251)
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500252
253cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700254 name = "dma",
255 srcs = [
256 "dma.cc",
257 ],
258 hdrs = [
259 "dma.h",
260 ],
261 restricted_to = ["//tools:roborio"],
262 deps = [
263 "//third_party:wpilib",
264 ],
265)
266
267cc_library(
268 name = "spi_rx_clearer",
269 srcs = [
270 "spi_rx_clearer.cc",
271 ],
272 hdrs = [
273 "spi_rx_clearer.h",
274 ],
275 deps = [
John Park33858a32018-09-28 23:05:48 -0700276 "//aos/logging",
Brian Silverman003a4732018-03-11 14:02:15 -0700277 ],
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500278)
Sabina Davisadc58542019-02-01 22:23:00 -0800279
280cc_library(
281 name = "sensor_reader",
282 srcs = [
283 "sensor_reader.cc",
284 ],
285 hdrs = [
286 "sensor_reader.h"
287 ],
288 restricted_to = ["//tools:roborio"],
289 deps = [
290 "//aos:init",
291 "//aos/time:time",
292 "//aos/stl_mutex",
293 "//third_party:wpilib",
294 ],
295)