blob: 8f162a7f047deac192f1720e0e3957b89b661ac0 [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)",
Philipp Schraderdada1072020-11-24 11:34:46 -080010 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070011 tools = [
12 "//y2017/control_loops/python:hood",
13 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080014)
15
16cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070017 name = "hood_plants",
18 srcs = [
19 "hood_integral_plant.cc",
20 "hood_plant.cc",
21 ],
22 hdrs = [
23 "hood_integral_plant.h",
24 "hood_plant.h",
25 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080026 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070027 visibility = ["//visibility:public"],
28 deps = [
29 "//frc971/control_loops:state_feedback_loop",
30 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080031)
Austin Schuh87c10632017-02-05 19:02:17 -080032
33cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070034 name = "hood",
35 srcs = [
36 "hood.cc",
37 ],
38 hdrs = [
39 "hood.h",
40 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080041 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070042 visibility = ["//visibility:public"],
43 deps = [
44 ":hood_plants",
45 "//frc971/control_loops:profiled_subsystem",
46 "//y2017:constants",
47 "//y2017/control_loops/superstructure:superstructure_goal_fbs",
48 "//y2017/control_loops/superstructure:superstructure_position_fbs",
49 "//y2017/control_loops/superstructure:superstructure_status_fbs",
50 ],
Austin Schuh87c10632017-02-05 19:02:17 -080051)