Maxwell Henderson | 3424299 | 2024-01-07 12:39:11 -0800 | [diff] [blame^] | 1 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library") |
| 2 | load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library") |
| 3 | |
| 4 | flatbuffer_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 | |
| 13 | flatbuffer_ts_library( |
| 14 | name = "flywheel_controller_status_ts_fbs", |
| 15 | srcs = [ |
| 16 | "flywheel_controller_status.fbs", |
| 17 | ], |
| 18 | visibility = ["//visibility:public"], |
| 19 | ) |
| 20 | |
| 21 | cc_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 | |
| 33 | cc_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 | ) |