blob: 896312ed45f0df5cc105a0a4b727e3da302809b5 [file] [log] [blame]
Philipp Schrader87277f42022-01-01 07:45:12 -08001load("@npm//@bazel/typescript:index.bzl", "ts_library")
James Kuszmaul5f5e1232020-12-22 20:58:00 -08002load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_ts_library")
Austin Schuh00be38c2019-12-01 18:08:25 -08003load("//aos:config.bzl", "aos_config")
Brian Silverman100534c2015-09-07 15:51:23 -04004
Philipp Schradercc016b32021-12-30 08:59:58 -08005package(default_visibility = ["//visibility:public"])
6
Alex Perrycb7da4b2019-08-28 19:35:56 -07007flatbuffer_cc_library(
8 name = "logging_fbs",
Brian Silverman003a4732018-03-11 14:02:15 -07009 srcs = [
Alex Perrycb7da4b2019-08-28 19:35:56 -070010 "logging.fbs",
Brian Silverman003a4732018-03-11 14:02:15 -070011 ],
Austin Schuhed5b26d2019-12-05 20:51:59 -080012 gen_reflections = 1,
Philipp Schraderdada1072020-11-24 11:34:46 -080013 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman100534c2015-09-07 15:51:23 -040014)
15
16cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070017 name = "encoder_and_potentiometer",
18 srcs = [
19 "encoder_and_potentiometer.cc",
20 ],
21 hdrs = [
22 "encoder_and_potentiometer.h",
23 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080024 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -070025 deps = [
26 ":dma",
27 ":dma_edge_counting",
John Park398c74a2018-10-20 21:17:39 -070028 "//aos:init",
Austin Schuh45a549f2019-02-02 15:43:56 -080029 "//aos/logging",
Brian Silverman003a4732018-03-11 14:02:15 -070030 "//third_party:wpilib",
31 ],
Brian Silverman100534c2015-09-07 15:51:23 -040032)
33
34cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070035 name = "dma_edge_counting",
36 srcs = [
37 "dma_edge_counting.cc",
38 ],
39 hdrs = [
40 "dma_edge_counting.h",
41 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080042 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -070043 deps = [
44 ":dma",
Austin Schuhb1aaefe2021-10-12 22:05:44 -070045 "//aos/containers:sized_array",
John Park33858a32018-09-28 23:05:48 -070046 "//aos/logging",
Brian Silverman003a4732018-03-11 14:02:15 -070047 "//third_party:wpilib",
48 ],
Brian Silverman100534c2015-09-07 15:51:23 -040049)
50
51cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070052 name = "interrupt_edge_counting",
53 srcs = [
54 "interrupt_edge_counting.cc",
55 ],
56 hdrs = [
57 "interrupt_edge_counting.h",
58 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080059 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -070060 deps = [
John Park398c74a2018-10-20 21:17:39 -070061 "//aos:init",
Austin Schuh45a549f2019-02-02 15:43:56 -080062 "//aos/logging",
63 "//aos/stl_mutex",
64 "//aos/time",
Brian Silverman003a4732018-03-11 14:02:15 -070065 "//third_party:wpilib",
66 ],
Brian Silverman100534c2015-09-07 15:51:23 -040067)
68
69cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070070 name = "buffered_pcm",
71 srcs = [
72 "buffered_pcm.cc",
73 "buffered_solenoid.cc",
74 ],
75 hdrs = [
76 "buffered_pcm.h",
77 "buffered_solenoid.h",
78 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080079 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -070080 deps = [
John Park33858a32018-09-28 23:05:48 -070081 "//aos/logging",
Brian Silverman003a4732018-03-11 14:02:15 -070082 "//third_party:wpilib",
83 ],
Brian Silverman100534c2015-09-07 15:51:23 -040084)
85
86cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -070087 name = "gyro_interface",
88 srcs = [
89 "gyro_interface.cc",
90 ],
91 hdrs = [
92 "gyro_interface.h",
93 ],
Brian Silverman7be68ba2020-01-08 22:08:40 -080094 # This library uses some deprecated parts of the SPI API.
95 copts = ["-Wno-deprecated-declarations"],
Philipp Schraderdada1072020-11-24 11:34:46 -080096 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -070097 deps = [
John Park33858a32018-09-28 23:05:48 -070098 "//aos/logging",
Austin Schuh45a549f2019-02-02 15:43:56 -080099 "//aos/time",
Brian Silverman003a4732018-03-11 14:02:15 -0700100 "//third_party:wpilib",
101 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400102)
103
104cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700105 name = "gyro_sender",
106 srcs = [
107 "gyro_sender.cc",
108 ],
109 hdrs = [
110 "gyro_sender.h",
111 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800112 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -0700113 deps = [
114 ":gyro_interface",
Austin Schuh45a549f2019-02-02 15:43:56 -0800115 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700116 "//aos/events:event_loop",
Austin Schuh217a9782019-12-21 23:02:50 -0800117 "//aos/events:shm_event_loop",
John Park33858a32018-09-28 23:05:48 -0700118 "//aos/logging",
Austin Schuh45a549f2019-02-02 15:43:56 -0800119 "//aos/time",
John Park33858a32018-09-28 23:05:48 -0700120 "//aos/util:phased_loop",
Austin Schuhdd7ded62021-06-20 14:35:56 -0700121 "//frc971/input:robot_state_fbs",
Tyler Chatow24b5db12020-01-06 21:16:56 -0800122 "//frc971/queues:gyro_fbs",
123 "//frc971/queues:gyro_uid_fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700124 "//frc971/zeroing:averager",
125 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400126)
127
Alex Perrycb7da4b2019-08-28 19:35:56 -0700128flatbuffer_cc_library(
129 name = "loop_output_handler_test_fbs",
Austin Schuhbd1fe9c2019-06-29 16:35:48 -0700130 srcs = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700131 "loop_output_handler_test.fbs",
Austin Schuhbd1fe9c2019-06-29 16:35:48 -0700132 ],
Austin Schuh00be38c2019-12-01 18:08:25 -0800133 gen_reflections = 1,
Philipp Schraderdada1072020-11-24 11:34:46 -0800134 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh00be38c2019-12-01 18:08:25 -0800135)
136
137aos_config(
Austin Schuhc5fa6d92022-02-25 14:36:28 -0800138 name = "aos_config",
Austin Schuhed5b26d2019-12-05 20:51:59 -0800139 src = "wpilib_config.json",
140 flatbuffers = [
141 ":pdp_values_fbs",
142 ":logging_fbs",
143 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800144 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhed5b26d2019-12-05 20:51:59 -0800145)
146
147aos_config(
Austin Schuh00be38c2019-12-01 18:08:25 -0800148 name = "loop_output_handler_test_config",
149 src = "loop_output_handler_test_config_source.json",
150 flatbuffers = [
151 ":loop_output_handler_test_fbs",
152 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800153 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh39788ff2019-12-01 18:22:57 -0800154 deps = [
Austin Schuhc5fa6d92022-02-25 14:36:28 -0800155 "//aos/events:aos_config",
Austin Schuh39788ff2019-12-01 18:22:57 -0800156 ],
Austin Schuhbd1fe9c2019-06-29 16:35:48 -0700157)
158
Brian Silverman100534c2015-09-07 15:51:23 -0400159cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700160 name = "loop_output_handler",
161 srcs = [
162 "loop_output_handler.cc",
163 ],
164 hdrs = [
165 "loop_output_handler.h",
166 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800167 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman003a4732018-03-11 14:02:15 -0700168 deps = [
John Park398c74a2018-10-20 21:17:39 -0700169 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700170 "//aos/events:event_loop",
Austin Schuh45a549f2019-02-02 15:43:56 -0800171 "//aos/scoped:scoped_fd",
172 "//aos/time",
173 "//aos/util:log_interval",
Austin Schuhdd7ded62021-06-20 14:35:56 -0700174 "//frc971/input:robot_state_fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700175 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400176)
177
Austin Schuhbd1fe9c2019-06-29 16:35:48 -0700178cc_test(
179 name = "loop_output_handler_test",
180 srcs = [
181 "loop_output_handler_test.cc",
182 ],
Austin Schuh00be38c2019-12-01 18:08:25 -0800183 data = [
Austin Schuh14d7d3d2020-09-10 18:14:36 -0700184 ":loop_output_handler_test_config",
Austin Schuh00be38c2019-12-01 18:08:25 -0800185 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800186 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhbd1fe9c2019-06-29 16:35:48 -0700187 deps = [
188 ":loop_output_handler",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700189 ":loop_output_handler_test_fbs",
Austin Schuhbd1fe9c2019-06-29 16:35:48 -0700190 "//aos/events:simulated_event_loop",
Austin Schuhbd1fe9c2019-06-29 16:35:48 -0700191 "//aos/testing:googletest",
192 "//aos/testing:test_logging",
193 ],
194)
195
Brian Silverman100534c2015-09-07 15:51:23 -0400196cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700197 name = "joystick_sender",
198 srcs = [
199 "joystick_sender.cc",
200 ],
201 hdrs = [
202 "joystick_sender.h",
203 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800204 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -0700205 deps = [
John Park398c74a2018-10-20 21:17:39 -0700206 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700207 "//aos/events:shm_event_loop",
Austin Schuh45a549f2019-02-02 15:43:56 -0800208 "//aos/network:team_number",
Austin Schuhdd7ded62021-06-20 14:35:56 -0700209 "//frc971/input:driver_station_data",
James Kuszmaul7077d342021-06-09 20:23:58 -0700210 "//frc971/input:joystick_state_fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700211 "//third_party:wpilib",
212 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400213)
Brian Silverman811f8ec2015-12-06 01:29:42 -0500214
215cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700216 name = "wpilib_interface",
217 srcs = [
218 "wpilib_interface.cc",
219 ],
220 hdrs = [
221 "wpilib_interface.h",
222 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800223 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -0700224 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700225 "//aos/events:event_loop",
James Kuszmaul7077d342021-06-09 20:23:58 -0700226 "//frc971/input:robot_state_fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700227 "//third_party:wpilib",
228 ],
Brian Silverman39b339e2016-01-03 13:24:22 -0800229)
230
Alex Perrycb7da4b2019-08-28 19:35:56 -0700231flatbuffer_cc_library(
Austin Schuhed5b26d2019-12-05 20:51:59 -0800232 name = "pdp_values_fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700233 srcs = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700234 "pdp_values.fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700235 ],
Austin Schuhed5b26d2019-12-05 20:51:59 -0800236 gen_reflections = 1,
Philipp Schraderdada1072020-11-24 11:34:46 -0800237 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman425492b2015-12-30 15:23:55 -0800238)
239
240cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700241 name = "pdp_fetcher",
242 srcs = [
243 "pdp_fetcher.cc",
244 ],
245 hdrs = [
246 "pdp_fetcher.h",
247 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800248 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -0700249 deps = [
Austin Schuhed5b26d2019-12-05 20:51:59 -0800250 ":pdp_values_fbs",
Austin Schuh45a549f2019-02-02 15:43:56 -0800251 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700252 "//aos/events:event_loop",
Austin Schuh217a9782019-12-21 23:02:50 -0800253 "//aos/events:shm_event_loop",
John Park33858a32018-09-28 23:05:48 -0700254 "//aos/util:phased_loop",
Brian Silverman003a4732018-03-11 14:02:15 -0700255 "//third_party:wpilib",
256 ],
Brian Silverman811f8ec2015-12-06 01:29:42 -0500257)
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800258
259cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700260 name = "wpilib_robot_base",
261 hdrs = [
262 "wpilib_robot_base.h",
263 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800264 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -0700265 deps = [
266 "//third_party:wpilib",
267 ],
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800268)
Brian Silverman5f17a972016-02-28 01:49:32 -0500269
Alex Perrycb7da4b2019-08-28 19:35:56 -0700270flatbuffer_cc_library(
271 name = "imu_fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700272 srcs = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700273 "imu.fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700274 ],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700275 gen_reflections = 1,
Philipp Schraderdada1072020-11-24 11:34:46 -0800276 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman5f17a972016-02-28 01:49:32 -0500277)
278
Austin Schuhac17fba2020-03-28 15:55:33 -0700279flatbuffer_cc_library(
280 name = "imu_batch_fbs",
281 srcs = [
282 "imu_batch.fbs",
283 ],
284 gen_reflections = 1,
285 includes = [
286 ":imu_fbs_includes",
287 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800288 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhac17fba2020-03-28 15:55:33 -0700289)
290
James Kuszmaul5f5e1232020-12-22 20:58:00 -0800291flatbuffer_ts_library(
James Kuszmauldac091f2022-03-22 09:35:06 -0700292 name = "imu_ts_fbs",
293 srcs = ["imu.fbs"],
294)
295
296flatbuffer_ts_library(
James Kuszmaul5f5e1232020-12-22 20:58:00 -0800297 name = "imu_batch_ts_fbs",
298 srcs = ["imu_batch.fbs"],
James Kuszmauldac091f2022-03-22 09:35:06 -0700299 deps = [
300 ":imu_ts_fbs",
James Kuszmaul5f5e1232020-12-22 20:58:00 -0800301 ],
James Kuszmaul5f5e1232020-12-22 20:58:00 -0800302)
303
Brian Silverman5f17a972016-02-28 01:49:32 -0500304cc_library(
Brian Silverman7be68ba2020-01-08 22:08:40 -0800305 name = "ADIS16470",
306 srcs = [
307 "ADIS16470.cc",
308 ],
309 hdrs = [
310 "ADIS16470.h",
311 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800312 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman7be68ba2020-01-08 22:08:40 -0800313 deps = [
314 ":fpga_time_conversion",
Austin Schuhac17fba2020-03-28 15:55:33 -0700315 ":imu_batch_fbs",
Brian Silverman7be68ba2020-01-08 22:08:40 -0800316 ":imu_fbs",
Austin Schuhac17fba2020-03-28 15:55:33 -0700317 "//aos/containers:sized_array",
Brian Silverman7be68ba2020-01-08 22:08:40 -0800318 "//aos/events:event_loop",
319 "//aos/time",
320 "//third_party:wpilib",
321 "@com_github_google_glog//:glog",
322 "@com_google_absl//absl/types:span",
323 ],
324)
325
326cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700327 name = "ADIS16448",
328 srcs = [
329 "ADIS16448.cc",
330 ],
331 hdrs = [
332 "ADIS16448.h",
333 ],
Brian Silverman7be68ba2020-01-08 22:08:40 -0800334 # This library uses some deprecated parts of the SPI API.
335 copts = ["-Wno-deprecated-declarations"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800336 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -0700337 deps = [
Brian Silverman7be68ba2020-01-08 22:08:40 -0800338 ":fpga_time_conversion",
Austin Schuhdd7ded62021-06-20 14:35:56 -0700339 ":imu_batch_fbs",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700340 ":imu_fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700341 ":spi_rx_clearer",
Austin Schuh45a549f2019-02-02 15:43:56 -0800342 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700343 "//aos/events:event_loop",
Austin Schuh217a9782019-12-21 23:02:50 -0800344 "//aos/events:shm_event_loop",
John Park33858a32018-09-28 23:05:48 -0700345 "//aos/logging",
Austin Schuh45a549f2019-02-02 15:43:56 -0800346 "//aos/time",
Brian Silverman003a4732018-03-11 14:02:15 -0700347 "//frc971/zeroing:averager",
348 "//third_party:wpilib",
349 ],
Brian Silverman5f17a972016-02-28 01:49:32 -0500350)
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500351
352cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700353 name = "dma",
354 srcs = [
355 "dma.cc",
356 ],
357 hdrs = [
358 "dma.h",
359 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800360 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -0700361 deps = [
362 "//third_party:wpilib",
363 ],
364)
365
366cc_library(
367 name = "spi_rx_clearer",
368 srcs = [
369 "spi_rx_clearer.cc",
370 ],
371 hdrs = [
372 "spi_rx_clearer.h",
373 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800374 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman003a4732018-03-11 14:02:15 -0700375 deps = [
John Park33858a32018-09-28 23:05:48 -0700376 "//aos/logging",
Brian Silverman003a4732018-03-11 14:02:15 -0700377 ],
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500378)
Sabina Davisadc58542019-02-01 22:23:00 -0800379
380cc_library(
381 name = "sensor_reader",
382 srcs = [
383 "sensor_reader.cc",
384 ],
385 hdrs = [
Austin Schuh45a549f2019-02-02 15:43:56 -0800386 "sensor_reader.h",
Sabina Davisadc58542019-02-01 22:23:00 -0800387 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800388 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Sabina Davisadc58542019-02-01 22:23:00 -0800389 deps = [
Sabina Davis1ffa4172019-02-01 22:38:33 -0800390 ":dma",
391 ":dma_edge_counting",
Austin Schuh54667ac2019-02-02 16:44:49 -0800392 ":encoder_and_potentiometer",
Brian Silverman7be68ba2020-01-08 22:08:40 -0800393 ":fpga_time_conversion",
Austin Schuh45a549f2019-02-02 15:43:56 -0800394 ":wpilib_interface",
395 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700396 "//aos/events:event_loop",
Austin Schuh217a9782019-12-21 23:02:50 -0800397 "//aos/events:shm_event_loop",
Austin Schuha0c41ba2020-09-10 22:59:14 -0700398 "//aos/logging",
Austin Schuh45a549f2019-02-02 15:43:56 -0800399 "//aos/stl_mutex",
400 "//aos/time",
401 "//aos/util:phased_loop",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700402 "//frc971/control_loops:control_loops_fbs",
Austin Schuh45a549f2019-02-02 15:43:56 -0800403 "//third_party:wpilib",
Sabina Davisadc58542019-02-01 22:23:00 -0800404 ],
405)
Sabina Davisd004fd62019-02-02 23:51:46 -0800406
407cc_library(
408 name = "drivetrain_writer",
409 srcs = [
410 "drivetrain_writer.cc",
411 ],
412 hdrs = [
413 "drivetrain_writer.h",
414 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800415 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Sabina Davisd004fd62019-02-02 23:51:46 -0800416 deps = [
417 ":loop_output_handler",
418 "//aos:math",
419 "//aos/logging",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700420 "//frc971/control_loops/drivetrain:drivetrain_output_fbs",
Sabina Davisd004fd62019-02-02 23:51:46 -0800421 "//third_party:wpilib",
422 ],
423)
Brian Silverman7be68ba2020-01-08 22:08:40 -0800424
425cc_library(
426 name = "fpga_time_conversion",
427 srcs = [
428 "fpga_time_conversion.cc",
429 ],
430 hdrs = [
431 "fpga_time_conversion.h",
432 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800433 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman7be68ba2020-01-08 22:08:40 -0800434 deps = [
435 "//aos/time",
436 "//aos/util:compiler_memory_barrier",
437 "//third_party:wpilib",
438 "@com_github_google_glog//:glog",
439 ],
440)
James Kuszmaul5f5e1232020-12-22 20:58:00 -0800441
442ts_library(
443 name = "imu_plot_utils",
444 srcs = ["imu_plot_utils.ts"],
445 target_compatible_with = ["@platforms//os:linux"],
446 deps = [
447 ":imu_batch_ts_fbs",
448 "//aos:configuration_ts_fbs",
449 "//aos/network/www:aos_plotter",
James Kuszmaul0d7df892021-04-09 22:19:49 -0700450 "//aos/network/www:plotter",
James Kuszmaul5f5e1232020-12-22 20:58:00 -0800451 "//aos/network/www:reflection_ts",
James Kuszmauldac091f2022-03-22 09:35:06 -0700452 "@com_github_google_flatbuffers//reflection:reflection_ts_fbs",
James Kuszmaul5f5e1232020-12-22 20:58:00 -0800453 "@com_github_google_flatbuffers//ts:flatbuffers_ts",
454 ],
455)
456
457ts_library(
458 name = "imu_plotter",
459 srcs = ["imu_plotter.ts"],
460 target_compatible_with = ["@platforms//os:linux"],
461 deps = [
462 ":imu_plot_utils",
463 "//aos/network/www:aos_plotter",
464 "//aos/network/www:proxy",
465 ],
466)