blob: c3f6ef0b304be22dd878f8cd6113b4f15847ad8d [file] [log] [blame]
Austin Schuh48d60c12017-02-04 21:58:58 -08001genrule(
Alex Perrycb7da4b2019-08-28 19:35:56 -07002 name = "genrule_hood",
3 outs = [
4 "hood_plant.h",
5 "hood_plant.cc",
6 "hood_integral_plant.h",
7 "hood_integral_plant.cc",
8 ],
9 cmd = "$(location //y2017/control_loops/python:hood) $(OUTS)",
10 tools = [
11 "//y2017/control_loops/python:hood",
12 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080013)
14
15cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070016 name = "hood_plants",
17 srcs = [
18 "hood_integral_plant.cc",
19 "hood_plant.cc",
20 ],
21 hdrs = [
22 "hood_integral_plant.h",
23 "hood_plant.h",
24 ],
25 visibility = ["//visibility:public"],
26 deps = [
27 "//frc971/control_loops:state_feedback_loop",
28 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080029)
Austin Schuh87c10632017-02-05 19:02:17 -080030
31cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070032 name = "hood",
33 srcs = [
34 "hood.cc",
35 ],
36 hdrs = [
37 "hood.h",
38 ],
39 visibility = ["//visibility:public"],
40 deps = [
41 ":hood_plants",
42 "//frc971/control_loops:profiled_subsystem",
43 "//y2017:constants",
44 "//y2017/control_loops/superstructure:superstructure_goal_fbs",
45 "//y2017/control_loops/superstructure:superstructure_position_fbs",
46 "//y2017/control_loops/superstructure:superstructure_status_fbs",
47 ],
Austin Schuh87c10632017-02-05 19:02:17 -080048)