blob: d63231b02f43c3fbe3a8e8e9c7ef2f9fd920fe9e [file] [log] [blame]
Sabina Davisedf89472020-02-17 15:27:37 -08001package(default_visibility = ["//visibility:public"])
2
3load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
4
5cc_library(
6 name = "shooter_plants",
7 srcs = [
8 "//y2020/control_loops/superstructure/accelerator:accelerator_integral_plant.cc",
9 "//y2020/control_loops/superstructure/accelerator:accelerator_plant.cc",
10 "//y2020/control_loops/superstructure/finisher:finisher_integral_plant.cc",
11 "//y2020/control_loops/superstructure/finisher:finisher_plant.cc",
12 ],
13 hdrs = [
14 "//y2020/control_loops/superstructure/accelerator:accelerator_integral_plant.h",
15 "//y2020/control_loops/superstructure/accelerator:accelerator_plant.h",
16 "//y2020/control_loops/superstructure/finisher:finisher_integral_plant.h",
17 "//y2020/control_loops/superstructure/finisher:finisher_plant.h",
18 ],
19 deps = [
20 "//frc971/control_loops:state_feedback_loop",
21 ],
22)
23
24cc_library(
25 name = "shooter",
26 srcs = [
27 "shooter.cc",
28 ],
29 hdrs = [
30 "shooter.h",
31 ],
32 deps = [
33 ":flywheel_controller",
34 "//aos/controls:control_loop",
35 "//frc971/control_loops:profiled_subsystem",
36 "//y2020/control_loops/superstructure:superstructure_goal_fbs",
37 "//y2020/control_loops/superstructure:superstructure_output_fbs",
38 "//y2020/control_loops/superstructure:superstructure_position_fbs",
39 "//y2020/control_loops/superstructure:superstructure_status_fbs",
40 ],
41)
42
43cc_library(
44 name = "flywheel_controller",
45 srcs = [
46 "flywheel_controller.cc",
47 ],
48 hdrs = [
49 "flywheel_controller.h",
50 ],
51 deps = [
52 ":shooter_plants",
53 "//aos/controls:control_loop",
54 "//frc971/control_loops:profiled_subsystem",
55 "//y2020/control_loops/superstructure:superstructure_goal_fbs",
56 "//y2020/control_loops/superstructure:superstructure_status_fbs",
57 ],
58)