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