blob: 2c8ed2949e1f485d50a45a5fd55e3b0044627e8f [file] [log] [blame]
James Kuszmaul5f5e1232020-12-22 20:58:00 -08001load("@npm_bazel_typescript//:defs.bzl", "ts_library")
2load("@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 Schuhed5b26d2019-12-05 20:51:59 -0800138 name = "config",
139 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 = [
155 "//aos/events:config",
156 ],
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(
292 name = "imu_batch_ts_fbs",
293 srcs = ["imu_batch.fbs"],
294 includes = [
295 ":imu_fbs_includes",
296 ],
297 target_compatible_with = ["@platforms//os:linux"],
298)
299
Brian Silverman5f17a972016-02-28 01:49:32 -0500300cc_library(
Brian Silverman7be68ba2020-01-08 22:08:40 -0800301 name = "ADIS16470",
302 srcs = [
303 "ADIS16470.cc",
304 ],
305 hdrs = [
306 "ADIS16470.h",
307 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800308 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman7be68ba2020-01-08 22:08:40 -0800309 deps = [
310 ":fpga_time_conversion",
Austin Schuhac17fba2020-03-28 15:55:33 -0700311 ":imu_batch_fbs",
Brian Silverman7be68ba2020-01-08 22:08:40 -0800312 ":imu_fbs",
Austin Schuhac17fba2020-03-28 15:55:33 -0700313 "//aos/containers:sized_array",
Brian Silverman7be68ba2020-01-08 22:08:40 -0800314 "//aos/events:event_loop",
315 "//aos/time",
316 "//third_party:wpilib",
317 "@com_github_google_glog//:glog",
318 "@com_google_absl//absl/types:span",
319 ],
320)
321
322cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700323 name = "ADIS16448",
324 srcs = [
325 "ADIS16448.cc",
326 ],
327 hdrs = [
328 "ADIS16448.h",
329 ],
Brian Silverman7be68ba2020-01-08 22:08:40 -0800330 # This library uses some deprecated parts of the SPI API.
331 copts = ["-Wno-deprecated-declarations"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800332 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -0700333 deps = [
Brian Silverman7be68ba2020-01-08 22:08:40 -0800334 ":fpga_time_conversion",
Austin Schuhdd7ded62021-06-20 14:35:56 -0700335 ":imu_batch_fbs",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700336 ":imu_fbs",
Brian Silverman003a4732018-03-11 14:02:15 -0700337 ":spi_rx_clearer",
Austin Schuh45a549f2019-02-02 15:43:56 -0800338 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700339 "//aos/events:event_loop",
Austin Schuh217a9782019-12-21 23:02:50 -0800340 "//aos/events:shm_event_loop",
John Park33858a32018-09-28 23:05:48 -0700341 "//aos/logging",
Austin Schuh45a549f2019-02-02 15:43:56 -0800342 "//aos/time",
Brian Silverman003a4732018-03-11 14:02:15 -0700343 "//frc971/zeroing:averager",
344 "//third_party:wpilib",
345 ],
Brian Silverman5f17a972016-02-28 01:49:32 -0500346)
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500347
348cc_library(
Brian Silverman003a4732018-03-11 14:02:15 -0700349 name = "dma",
350 srcs = [
351 "dma.cc",
352 ],
353 hdrs = [
354 "dma.h",
355 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800356 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman003a4732018-03-11 14:02:15 -0700357 deps = [
358 "//third_party:wpilib",
359 ],
360)
361
362cc_library(
363 name = "spi_rx_clearer",
364 srcs = [
365 "spi_rx_clearer.cc",
366 ],
367 hdrs = [
368 "spi_rx_clearer.h",
369 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800370 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman003a4732018-03-11 14:02:15 -0700371 deps = [
John Park33858a32018-09-28 23:05:48 -0700372 "//aos/logging",
Brian Silverman003a4732018-03-11 14:02:15 -0700373 ],
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500374)
Sabina Davisadc58542019-02-01 22:23:00 -0800375
376cc_library(
377 name = "sensor_reader",
378 srcs = [
379 "sensor_reader.cc",
380 ],
381 hdrs = [
Austin Schuh45a549f2019-02-02 15:43:56 -0800382 "sensor_reader.h",
Sabina Davisadc58542019-02-01 22:23:00 -0800383 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800384 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Sabina Davisadc58542019-02-01 22:23:00 -0800385 deps = [
Sabina Davis1ffa4172019-02-01 22:38:33 -0800386 ":dma",
387 ":dma_edge_counting",
Austin Schuh54667ac2019-02-02 16:44:49 -0800388 ":encoder_and_potentiometer",
Brian Silverman7be68ba2020-01-08 22:08:40 -0800389 ":fpga_time_conversion",
Austin Schuh45a549f2019-02-02 15:43:56 -0800390 ":wpilib_interface",
391 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700392 "//aos/events:event_loop",
Austin Schuh217a9782019-12-21 23:02:50 -0800393 "//aos/events:shm_event_loop",
Austin Schuha0c41ba2020-09-10 22:59:14 -0700394 "//aos/logging",
Austin Schuh45a549f2019-02-02 15:43:56 -0800395 "//aos/stl_mutex",
396 "//aos/time",
397 "//aos/util:phased_loop",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700398 "//frc971/control_loops:control_loops_fbs",
Austin Schuh45a549f2019-02-02 15:43:56 -0800399 "//third_party:wpilib",
Sabina Davisadc58542019-02-01 22:23:00 -0800400 ],
401)
Sabina Davisd004fd62019-02-02 23:51:46 -0800402
403cc_library(
404 name = "drivetrain_writer",
405 srcs = [
406 "drivetrain_writer.cc",
407 ],
408 hdrs = [
409 "drivetrain_writer.h",
410 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800411 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Sabina Davisd004fd62019-02-02 23:51:46 -0800412 deps = [
413 ":loop_output_handler",
414 "//aos:math",
415 "//aos/logging",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700416 "//frc971/control_loops/drivetrain:drivetrain_output_fbs",
Sabina Davisd004fd62019-02-02 23:51:46 -0800417 "//third_party:wpilib",
418 ],
419)
Brian Silverman7be68ba2020-01-08 22:08:40 -0800420
421cc_library(
422 name = "fpga_time_conversion",
423 srcs = [
424 "fpga_time_conversion.cc",
425 ],
426 hdrs = [
427 "fpga_time_conversion.h",
428 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800429 target_compatible_with = ["//tools/platforms/hardware:roborio"],
Brian Silverman7be68ba2020-01-08 22:08:40 -0800430 deps = [
431 "//aos/time",
432 "//aos/util:compiler_memory_barrier",
433 "//third_party:wpilib",
434 "@com_github_google_glog//:glog",
435 ],
436)
James Kuszmaul5f5e1232020-12-22 20:58:00 -0800437
438ts_library(
439 name = "imu_plot_utils",
440 srcs = ["imu_plot_utils.ts"],
441 target_compatible_with = ["@platforms//os:linux"],
442 deps = [
443 ":imu_batch_ts_fbs",
444 "//aos:configuration_ts_fbs",
445 "//aos/network/www:aos_plotter",
James Kuszmaul0d7df892021-04-09 22:19:49 -0700446 "//aos/network/www:plotter",
James Kuszmaul5f5e1232020-12-22 20:58:00 -0800447 "//aos/network/www:reflection_ts",
448 "@com_github_google_flatbuffers//ts:flatbuffers_ts",
449 ],
450)
451
452ts_library(
453 name = "imu_plotter",
454 srcs = ["imu_plotter.ts"],
455 target_compatible_with = ["@platforms//os:linux"],
456 deps = [
457 ":imu_plot_utils",
458 "//aos/network/www:aos_plotter",
459 "//aos/network/www:proxy",
460 ],
461)