blob: 0cf5d00f22ddd478ee635539ccb53456365294bb [file] [log] [blame]
James Kuszmaulf01da392023-12-14 11:22:14 -08001load("//aos/flatbuffers:generate.bzl", "static_flatbuffer")
Maxwell Henderson34242992024-01-07 12:39:11 -08002load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library")
3
James Kuszmaulf01da392023-12-14 11:22:14 -08004static_flatbuffer(
Maxwell Henderson34242992024-01-07 12:39:11 -08005 name = "flywheel_controller_status_fbs",
6 srcs = [
7 "flywheel_controller_status.fbs",
8 ],
Maxwell Henderson34242992024-01-07 12:39:11 -08009 visibility = ["//visibility:public"],
10)
11
12flatbuffer_ts_library(
13 name = "flywheel_controller_status_ts_fbs",
14 srcs = [
15 "flywheel_controller_status.fbs",
16 ],
17 visibility = ["//visibility:public"],
18)
19
20cc_library(
21 name = "flywheel_test_plant",
22 hdrs = [
23 "flywheel_test_plant.h",
24 ],
25 target_compatible_with = ["@platforms//os:linux"],
26 visibility = ["//visibility:public"],
27 deps = [
28 ":flywheel_controller",
29 ],
30)
31
32cc_library(
33 name = "flywheel_controller",
34 srcs = [
35 "flywheel_controller.cc",
36 ],
37 hdrs = [
38 "flywheel_controller.h",
39 ],
40 target_compatible_with = ["@platforms//os:linux"],
41 visibility = ["//visibility:public"],
42 deps = [
43 ":flywheel_controller_status_fbs",
44 "//frc971/control_loops:control_loop",
45 "//frc971/control_loops:hybrid_state_feedback_loop",
46 "//frc971/control_loops:profiled_subsystem",
47 ],
48)