blob: 4894b1608f28b6b33f33820434f0b81cbb65874e [file] [log] [blame]
Sabina Davisedf89472020-02-17 15:27:37 -08001package(default_visibility = ["//visibility:public"])
2
milind-u4b31c4d2021-09-18 16:08:23 -07003load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
4
Sabina Davisedf89472020-02-17 15:27:37 -08005cc_library(
6 name = "shooter_plants",
Philipp Schraderdada1072020-11-24 11:34:46 -08007 target_compatible_with = ["@platforms//os:linux"],
Sabina Davisedf89472020-02-17 15:27:37 -08008 deps = [
9 "//frc971/control_loops:state_feedback_loop",
10 ],
11)
12
13cc_library(
14 name = "shooter",
15 srcs = [
16 "shooter.cc",
17 ],
18 hdrs = [
19 "shooter.h",
20 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080021 target_compatible_with = ["@platforms//os:linux"],
Sabina Davisedf89472020-02-17 15:27:37 -080022 deps = [
23 ":flywheel_controller",
James Kuszmaul61750662021-06-21 21:32:33 -070024 "//frc971/control_loops:control_loop",
Sabina Davisedf89472020-02-17 15:27:37 -080025 "//frc971/control_loops:profiled_subsystem",
26 "//y2020/control_loops/superstructure:superstructure_goal_fbs",
27 "//y2020/control_loops/superstructure:superstructure_output_fbs",
28 "//y2020/control_loops/superstructure:superstructure_position_fbs",
29 "//y2020/control_loops/superstructure:superstructure_status_fbs",
30 ],
31)
32
33cc_library(
34 name = "flywheel_controller",
35 srcs = [
36 "flywheel_controller.cc",
37 ],
38 hdrs = [
39 "flywheel_controller.h",
40 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080041 target_compatible_with = ["@platforms//os:linux"],
Sabina Davisedf89472020-02-17 15:27:37 -080042 deps = [
James Kuszmaul61750662021-06-21 21:32:33 -070043 "//frc971/control_loops:control_loop",
Sabina Davisedf89472020-02-17 15:27:37 -080044 "//frc971/control_loops:profiled_subsystem",
45 "//y2020/control_loops/superstructure:superstructure_goal_fbs",
46 "//y2020/control_loops/superstructure:superstructure_status_fbs",
Austin Schuh9dcd5202020-02-20 20:06:04 -080047 "//y2020/control_loops/superstructure/accelerator:accelerator_plants",
48 "//y2020/control_loops/superstructure/finisher:finisher_plants",
Sabina Davisedf89472020-02-17 15:27:37 -080049 ],
50)
milind-u4b31c4d2021-09-18 16:08:23 -070051
52flatbuffer_cc_library(
53 name = "shooter_tuning_readings_fbs",
54 srcs = [
55 "shooter_tuning_readings.fbs",
56 ],
57 gen_reflections = 1,
58 target_compatible_with = ["@platforms//os:linux"],
59)