blob: 11c93dcb69c2a8753ec185acad1fb3ed3a5d3874 [file] [log] [blame]
Austin Schuha647d602018-02-18 14:05:15 -08001package(default_visibility = ["//visibility:public"])
Brian Silverman100534c2015-09-07 15:51:23 -04002
Austin Schuha9df9ad2021-06-16 14:49:39 -07003load("//aos:config.bzl", "aos_config")
Alex Perrycb7da4b2019-08-28 19:35:56 -07004load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
Brian Silverman100534c2015-09-07 15:51:23 -04005
6cc_library(
Austin Schuha647d602018-02-18 14:05:15 -08007 name = "team_number_test_environment",
8 testonly = True,
9 srcs = [
10 "team_number_test_environment.cc",
11 ],
12 hdrs = [
13 "team_number_test_environment.h",
14 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080015 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -080016 deps = [
John Park33858a32018-09-28 23:05:48 -070017 "//aos/network:team_number",
Austin Schuha647d602018-02-18 14:05:15 -080018 "//aos/testing:googletest",
19 ],
Brian Silverman100534c2015-09-07 15:51:23 -040020)
21
22cc_test(
Austin Schuha647d602018-02-18 14:05:15 -080023 name = "hybrid_state_feedback_loop_test",
24 srcs = [
25 "hybrid_state_feedback_loop_test.cc",
26 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080027 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -080028 deps = [
29 ":hybrid_state_feedback_loop",
30 "//aos/testing:googletest",
31 ],
Brian Silverman100534c2015-09-07 15:51:23 -040032)
33
34cc_library(
James Kuszmaul9f9676d2019-01-25 21:27:58 -080035 name = "pose",
36 hdrs = ["pose.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -080037 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaul9f9676d2019-01-25 21:27:58 -080038 deps = [
39 "//aos/util:math",
Alex Perrycb7da4b2019-08-28 19:35:56 -070040 "@org_tuxfamily_eigen//:eigen",
James Kuszmaul9f9676d2019-01-25 21:27:58 -080041 ],
42)
43
44cc_test(
45 name = "pose_test",
46 srcs = ["pose_test.cc"],
Philipp Schraderdada1072020-11-24 11:34:46 -080047 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaul9f9676d2019-01-25 21:27:58 -080048 deps = [
49 ":pose",
50 "//aos/testing:googletest",
51 ],
52)
53
54cc_library(
Austin Schuha647d602018-02-18 14:05:15 -080055 name = "hall_effect_tracker",
56 hdrs = [
57 "hall_effect_tracker.h",
58 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080059 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -080060 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -070061 ":control_loops_fbs",
Austin Schuha647d602018-02-18 14:05:15 -080062 ],
Brian Silverman100534c2015-09-07 15:51:23 -040063)
64
Alex Perrycb7da4b2019-08-28 19:35:56 -070065flatbuffer_cc_library(
66 name = "control_loops_fbs",
Austin Schuha647d602018-02-18 14:05:15 -080067 srcs = [
Alex Perrycb7da4b2019-08-28 19:35:56 -070068 "control_loops.fbs",
Austin Schuha647d602018-02-18 14:05:15 -080069 ],
Brian Silverman100534c2015-09-07 15:51:23 -040070)
71
72cc_test(
Austin Schuha647d602018-02-18 14:05:15 -080073 name = "position_sensor_sim_test",
74 srcs = [
75 "position_sensor_sim_test.cc",
76 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080077 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -080078 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -070079 ":control_loops_fbs",
Austin Schuha647d602018-02-18 14:05:15 -080080 ":position_sensor_sim",
John Park33858a32018-09-28 23:05:48 -070081 "//aos/logging",
Austin Schuha647d602018-02-18 14:05:15 -080082 "//aos/testing:googletest",
83 ],
Brian Silverman100534c2015-09-07 15:51:23 -040084)
85
86cc_library(
Austin Schuha647d602018-02-18 14:05:15 -080087 name = "position_sensor_sim",
88 testonly = True,
89 srcs = [
90 "position_sensor_sim.cc",
91 ],
92 hdrs = [
93 "position_sensor_sim.h",
94 ],
Brian Silverman6470f442018-08-05 12:08:16 -070095 linkopts = [
96 "-lm",
97 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080098 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -080099 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700100 ":control_loops_fbs",
Austin Schuha647d602018-02-18 14:05:15 -0800101 ":gaussian_noise",
Austin Schuha647d602018-02-18 14:05:15 -0800102 "//aos/testing:random_seed",
Philipp Schraderb3a057e2018-03-10 18:59:40 -0800103 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400104)
105
106cc_library(
Austin Schuha647d602018-02-18 14:05:15 -0800107 name = "gaussian_noise",
108 srcs = [
109 "gaussian_noise.cc",
110 ],
111 hdrs = [
112 "gaussian_noise.h",
113 ],
Philipp Schraderb3a057e2018-03-10 18:59:40 -0800114 linkopts = [
115 "-lm",
Austin Schuha647d602018-02-18 14:05:15 -0800116 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800117 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhbcce26a2018-03-26 23:41:24 -0700118)
119
120cc_library(
Austin Schuha647d602018-02-18 14:05:15 -0800121 name = "coerce_goal",
122 srcs = [
123 "coerce_goal.cc",
124 ],
125 hdrs = [
126 "coerce_goal.h",
127 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800128 linkopts = select({
129 "@platforms//os:linux": ["-lm"],
130 "//conditions:default": [],
131 }),
Austin Schuha647d602018-02-18 14:05:15 -0800132 deps = [
John Park33858a32018-09-28 23:05:48 -0700133 "//aos/controls:polytope",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700134 "@org_tuxfamily_eigen//:eigen",
Austin Schuha647d602018-02-18 14:05:15 -0800135 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400136)
137
Lee Mracek65686142020-01-10 22:21:39 -0500138cc_test(
139 name = "coerce_goal_test",
140 srcs = [
141 "coerce_goal_test.cc",
142 ],
143 linkopts = [
144 "-lm",
145 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800146 target_compatible_with = ["@platforms//os:linux"],
Lee Mracek65686142020-01-10 22:21:39 -0500147 deps = [
148 ":coerce_goal",
149 "//aos/controls:polytope",
150 "//aos/testing:googletest",
151 "@org_tuxfamily_eigen//:eigen",
152 ],
153)
154
Austin Schuh4cc4fe22017-11-23 19:13:09 -0800155cc_library(
Austin Schuha647d602018-02-18 14:05:15 -0800156 name = "state_feedback_loop",
157 hdrs = [
158 "state_feedback_loop.h",
159 ],
160 deps = [
John Park33858a32018-09-28 23:05:48 -0700161 "//aos:macros",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700162 "@org_tuxfamily_eigen//:eigen",
Philipp Schraderdada1072020-11-24 11:34:46 -0800163 ] + select({
164 "@platforms//os:linux": ["//aos/logging"],
165 "//conditions:default": [],
166 }),
Brian Silverman100534c2015-09-07 15:51:23 -0400167)
Brian Silverman2b1957a2016-02-14 20:29:57 -0500168
169cc_library(
Austin Schuha647d602018-02-18 14:05:15 -0800170 name = "hybrid_state_feedback_loop",
171 hdrs = [
172 "hybrid_state_feedback_loop.h",
173 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800174 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -0800175 deps = [
Austin Schuh9b881ae2019-01-04 07:29:20 +1100176 ":c2d",
Austin Schuha647d602018-02-18 14:05:15 -0800177 ":state_feedback_loop",
John Park33858a32018-09-28 23:05:48 -0700178 "//aos:macros",
179 "//aos/controls:control_loop",
180 "//aos/logging",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700181 "@org_tuxfamily_eigen//:eigen",
Austin Schuha647d602018-02-18 14:05:15 -0800182 ],
Brian Silverman2b1957a2016-02-14 20:29:57 -0500183)
Austin Schuhacd335a2017-01-01 16:20:54 -0800184
185cc_library(
Austin Schuha647d602018-02-18 14:05:15 -0800186 name = "simple_capped_state_feedback_loop",
187 hdrs = [
188 "simple_capped_state_feedback_loop.h",
189 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800190 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -0800191 deps = [
192 ":state_feedback_loop",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700193 "@org_tuxfamily_eigen//:eigen",
Austin Schuha647d602018-02-18 14:05:15 -0800194 ],
195)
196
197cc_library(
198 name = "runge_kutta",
199 hdrs = [
200 "runge_kutta.h",
201 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800202 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -0800203 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700204 "@org_tuxfamily_eigen//:eigen",
Austin Schuha647d602018-02-18 14:05:15 -0800205 ],
Austin Schuhacd335a2017-01-01 16:20:54 -0800206)
207
208cc_test(
Austin Schuha647d602018-02-18 14:05:15 -0800209 name = "runge_kutta_test",
210 srcs = [
211 "runge_kutta_test.cc",
212 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800213 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -0800214 deps = [
215 ":runge_kutta",
216 "//aos/testing:googletest",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700217 "@org_tuxfamily_eigen//:eigen",
Austin Schuha647d602018-02-18 14:05:15 -0800218 ],
Austin Schuhacd335a2017-01-01 16:20:54 -0800219)
Austin Schuh473a5652017-02-05 01:30:42 -0800220
Austin Schuh173a1592018-12-19 16:20:54 +1100221cc_library(
222 name = "fixed_quadrature",
223 hdrs = [
224 "fixed_quadrature.h",
225 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800226 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh173a1592018-12-19 16:20:54 +1100227)
228
229cc_test(
230 name = "fixed_quadrature_test",
231 srcs = [
232 "fixed_quadrature_test.cc",
233 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800234 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh173a1592018-12-19 16:20:54 +1100235 deps = [
236 ":fixed_quadrature",
237 "//aos/testing:googletest",
238 ],
239)
240
Alex Perrycb7da4b2019-08-28 19:35:56 -0700241flatbuffer_cc_library(
242 name = "profiled_subsystem_fbs",
Austin Schuha647d602018-02-18 14:05:15 -0800243 srcs = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700244 "profiled_subsystem.fbs",
Austin Schuha647d602018-02-18 14:05:15 -0800245 ],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700246 includes = [
247 ":control_loops_fbs_includes",
Austin Schuh9fe68f72019-08-10 19:32:03 -0700248 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800249 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh9fe68f72019-08-10 19:32:03 -0700250)
251
Austin Schuh473a5652017-02-05 01:30:42 -0800252cc_library(
Austin Schuha647d602018-02-18 14:05:15 -0800253 name = "profiled_subsystem",
254 srcs = [
255 "profiled_subsystem.cc",
256 ],
257 hdrs = [
258 "profiled_subsystem.h",
259 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800260 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -0800261 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700262 ":control_loops_fbs",
263 ":profiled_subsystem_fbs",
Austin Schuha647d602018-02-18 14:05:15 -0800264 ":simple_capped_state_feedback_loop",
265 ":state_feedback_loop",
John Park33858a32018-09-28 23:05:48 -0700266 "//aos/controls:control_loop",
267 "//aos/util:trapezoid_profile",
Austin Schuha647d602018-02-18 14:05:15 -0800268 "//frc971/zeroing",
269 ],
Austin Schuh473a5652017-02-05 01:30:42 -0800270)
Austin Schuha647d602018-02-18 14:05:15 -0800271
272cc_library(
273 name = "jacobian",
274 hdrs = [
275 "jacobian.h",
276 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800277 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -0800278 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700279 "@org_tuxfamily_eigen//:eigen",
Austin Schuha647d602018-02-18 14:05:15 -0800280 ],
281)
282
283cc_test(
284 name = "jacobian_test",
285 srcs = [
286 "jacobian_test.cc",
287 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800288 target_compatible_with = ["@platforms//os:linux"],
Austin Schuha647d602018-02-18 14:05:15 -0800289 deps = [
290 ":jacobian",
291 "//aos/testing:googletest",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700292 "@org_tuxfamily_eigen//:eigen",
Austin Schuha647d602018-02-18 14:05:15 -0800293 ],
294)
295
James Kuszmaul59a5c612019-01-22 07:56:08 -0800296cc_test(
297 name = "c2d_test",
298 srcs = [
299 "c2d_test.cc",
300 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800301 target_compatible_with = ["@platforms//os:linux"],
James Kuszmaul59a5c612019-01-22 07:56:08 -0800302 visibility = ["//visibility:public"],
303 deps = [
304 ":c2d",
305 ":runge_kutta",
306 "//aos/testing:googletest",
307 ],
308)
309
Austin Schuh03785132018-02-19 18:29:06 -0800310cc_library(
Austin Schuh9b881ae2019-01-04 07:29:20 +1100311 name = "c2d",
312 hdrs = [
313 "c2d.h",
314 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800315 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh9b881ae2019-01-04 07:29:20 +1100316 visibility = ["//visibility:public"],
317 deps = [
James Kuszmaul651fc3f2019-05-15 21:14:25 -0700318 "//aos/time",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700319 "@org_tuxfamily_eigen//:eigen",
Austin Schuh9b881ae2019-01-04 07:29:20 +1100320 ],
321)
322
323cc_library(
Austin Schuh03785132018-02-19 18:29:06 -0800324 name = "dlqr",
325 hdrs = [
326 "dlqr.h",
327 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800328 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh03785132018-02-19 18:29:06 -0800329 visibility = ["//visibility:public"],
330 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700331 "@org_tuxfamily_eigen//:eigen",
Austin Schuh03785132018-02-19 18:29:06 -0800332 "@slycot_repo//:slicot",
333 ],
334)
Brian Silverman6470f442018-08-05 12:08:16 -0700335
336py_library(
337 name = "python_init",
338 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800339 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700340 visibility = ["//visibility:public"],
341 deps = ["//frc971:python_init"],
342)
Austin Schuhe6e7ea52019-01-13 17:26:36 -0800343
344cc_library(
345 name = "binomial",
346 hdrs = ["binomial.h"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800347 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhe6e7ea52019-01-13 17:26:36 -0800348)
349
350cc_test(
351 name = "binomial_test",
352 srcs = [
353 "binomial_test.cc",
354 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800355 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhe6e7ea52019-01-13 17:26:36 -0800356 deps = [
357 ":binomial",
358 "//aos/testing:googletest",
359 ],
360)
Tyler Chatow12581562019-01-26 20:42:42 -0800361
362cc_library(
363 name = "capped_test_plant",
364 testonly = True,
365 srcs = [
366 "capped_test_plant.cc",
367 ],
368 hdrs = [
369 "capped_test_plant.h",
370 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800371 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatow12581562019-01-26 20:42:42 -0800372 deps = [
373 ":state_feedback_loop",
374 "//aos/testing:googletest",
375 ],
376)
377
378cc_library(
379 name = "static_zeroing_single_dof_profiled_subsystem",
Tyler Chatow12581562019-01-26 20:42:42 -0800380 hdrs = [
381 "static_zeroing_single_dof_profiled_subsystem.h",
382 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800383 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatow12581562019-01-26 20:42:42 -0800384 deps = [
385 "//frc971/control_loops:profiled_subsystem",
386 ],
387)
388
389genrule(
390 name = "genrule_static_zeroing_single_dof_profiled_subsystem_test",
391 outs = [
392 "static_zeroing_single_dof_profiled_subsystem_test_plant.h",
393 "static_zeroing_single_dof_profiled_subsystem_test_plant.cc",
394 "static_zeroing_single_dof_profiled_subsystem_test_integral_plant.h",
395 "static_zeroing_single_dof_profiled_subsystem_test_integral_plant.cc",
396 ],
397 cmd = "$(location //frc971/control_loops/python:static_zeroing_single_dof_profiled_subsystem_test) $(OUTS)",
Philipp Schraderdada1072020-11-24 11:34:46 -0800398 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatow12581562019-01-26 20:42:42 -0800399 tools = [
400 "//frc971/control_loops/python:static_zeroing_single_dof_profiled_subsystem_test",
401 ],
402)
403
404cc_library(
405 name = "static_zeroing_single_dof_profiled_subsystem_test_plants",
406 srcs = [
407 "static_zeroing_single_dof_profiled_subsystem_test_integral_plant.cc",
408 "static_zeroing_single_dof_profiled_subsystem_test_plant.cc",
409 ],
410 hdrs = [
411 "static_zeroing_single_dof_profiled_subsystem_test_integral_plant.h",
412 "static_zeroing_single_dof_profiled_subsystem_test_plant.h",
413 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800414 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatow12581562019-01-26 20:42:42 -0800415 deps = [
416 ":state_feedback_loop",
417 ],
418)
419
Alex Perrycb7da4b2019-08-28 19:35:56 -0700420flatbuffer_cc_library(
Austin Schuha9df9ad2021-06-16 14:49:39 -0700421 name = "static_zeroing_single_dof_profiled_subsystem_test_subsystem_goal_fbs",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700422 srcs = [
Austin Schuha9df9ad2021-06-16 14:49:39 -0700423 "static_zeroing_single_dof_profiled_subsystem_test_subsystem_goal.fbs",
Alex Perrycb7da4b2019-08-28 19:35:56 -0700424 ],
Austin Schuha9df9ad2021-06-16 14:49:39 -0700425 gen_reflections = 1,
426 includes = [
427 ":control_loops_fbs_includes",
428 ":profiled_subsystem_fbs_includes",
429 ],
430 target_compatible_with = ["@platforms//os:linux"],
431)
432
433flatbuffer_cc_library(
434 name = "static_zeroing_single_dof_profiled_subsystem_test_subsystem_output_fbs",
435 srcs = [
436 "static_zeroing_single_dof_profiled_subsystem_test_subsystem_output.fbs",
437 ],
438 gen_reflections = 1,
439 target_compatible_with = ["@platforms//os:linux"],
440)
441
442flatbuffer_cc_library(
443 name = "static_zeroing_single_dof_profiled_subsystem_test_pot_and_absolute_position_fbs",
444 srcs = [
445 "static_zeroing_single_dof_profiled_subsystem_test_pot_and_absolute_position.fbs",
446 ],
447 gen_reflections = 1,
448 includes = [
449 ":control_loops_fbs_includes",
450 ],
451 target_compatible_with = ["@platforms//os:linux"],
452)
453
454flatbuffer_cc_library(
455 name = "static_zeroing_single_dof_profiled_subsystem_test_absolute_position_fbs",
456 srcs = [
457 "static_zeroing_single_dof_profiled_subsystem_test_absolute_position.fbs",
458 ],
459 gen_reflections = 1,
460 includes = [
461 ":control_loops_fbs_includes",
462 ],
463 target_compatible_with = ["@platforms//os:linux"],
464)
465
466flatbuffer_cc_library(
467 name = "static_zeroing_single_dof_profiled_subsystem_test_pot_and_absolute_encoder_status_fbs",
468 srcs = [
469 "static_zeroing_single_dof_profiled_subsystem_test_pot_and_absolute_encoder_status.fbs",
470 ],
471 gen_reflections = 1,
472 includes = [
473 ":control_loops_fbs_includes",
474 ":profiled_subsystem_fbs_includes",
475 ],
476 target_compatible_with = ["@platforms//os:linux"],
477)
478
479flatbuffer_cc_library(
480 name = "static_zeroing_single_dof_profiled_subsystem_test_absolute_encoder_status_fbs",
481 srcs = [
482 "static_zeroing_single_dof_profiled_subsystem_test_absolute_encoder_status.fbs",
483 ],
484 gen_reflections = 1,
Alex Perrycb7da4b2019-08-28 19:35:56 -0700485 includes = [
486 ":control_loops_fbs_includes",
487 ":profiled_subsystem_fbs_includes",
488 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800489 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -0700490)
491
Tyler Chatow12581562019-01-26 20:42:42 -0800492cc_test(
493 name = "static_zeroing_single_dof_profiled_subsystem_test",
494 srcs = [
495 "static_zeroing_single_dof_profiled_subsystem_test.cc",
496 ],
Austin Schuha9df9ad2021-06-16 14:49:39 -0700497 data = [
498 ":static_zeroing_single_dof_profiled_subsystem_test_config",
499 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800500 target_compatible_with = ["@platforms//os:linux"],
Tyler Chatow12581562019-01-26 20:42:42 -0800501 deps = [
502 ":capped_test_plant",
503 ":position_sensor_sim",
504 ":static_zeroing_single_dof_profiled_subsystem",
Austin Schuha9df9ad2021-06-16 14:49:39 -0700505 ":static_zeroing_single_dof_profiled_subsystem_test_absolute_encoder_status_fbs",
506 ":static_zeroing_single_dof_profiled_subsystem_test_absolute_position_fbs",
Tyler Chatow12581562019-01-26 20:42:42 -0800507 ":static_zeroing_single_dof_profiled_subsystem_test_plants",
Austin Schuha9df9ad2021-06-16 14:49:39 -0700508 ":static_zeroing_single_dof_profiled_subsystem_test_pot_and_absolute_encoder_status_fbs",
509 ":static_zeroing_single_dof_profiled_subsystem_test_pot_and_absolute_position_fbs",
510 ":static_zeroing_single_dof_profiled_subsystem_test_subsystem_goal_fbs",
511 ":static_zeroing_single_dof_profiled_subsystem_test_subsystem_output_fbs",
Tyler Chatow12581562019-01-26 20:42:42 -0800512 "//aos/controls:control_loop_test",
513 "//aos/testing:googletest",
514 ],
515)
Austin Schuha9df9ad2021-06-16 14:49:39 -0700516
517aos_config(
518 name = "static_zeroing_single_dof_profiled_subsystem_test_config",
519 src = "static_zeroing_single_dof_profiled_subsystem_test_config_source.json",
520 flatbuffers = [
521 "//frc971/input:joystick_state_fbs",
522 "//frc971/input:robot_state_fbs",
523 "//aos/logging:log_message_fbs",
524 "//aos/events:event_loop_fbs",
525 ":static_zeroing_single_dof_profiled_subsystem_test_subsystem_output_fbs",
526 ":static_zeroing_single_dof_profiled_subsystem_test_absolute_encoder_status_fbs",
527 ":static_zeroing_single_dof_profiled_subsystem_test_subsystem_goal_fbs",
528 ":static_zeroing_single_dof_profiled_subsystem_test_absolute_position_fbs",
529 ":static_zeroing_single_dof_profiled_subsystem_test_pot_and_absolute_encoder_status_fbs",
530 ":static_zeroing_single_dof_profiled_subsystem_test_pot_and_absolute_position_fbs",
531 ],
532 target_compatible_with = ["@platforms//os:linux"],
533)