blob: f1cca65b0d011e3a05ee03fb397a7ce9217ae778 [file] [log] [blame]
milind-u53ad98a2023-02-20 16:26:09 -08001package(default_visibility = ["//y2023:__subpackages__"])
2
3genrule(
4 name = "genrule_roll",
5 outs = [
6 "roll_plant.h",
7 "roll_plant.cc",
8 "integral_roll_plant.h",
9 "integral_roll_plant.cc",
10 ],
11 cmd = "$(location //y2023/control_loops/python:roll) $(OUTS)",
12 target_compatible_with = ["@platforms//os:linux"],
13 tools = [
14 "//y2023/control_loops/python:roll",
15 ],
16)
17
18genrule(
19 name = "genrule_hybrid_roll",
20 outs = [
21 "hybrid_roll_plant.h",
22 "hybrid_roll_plant.cc",
23 "integral_hybrid_roll_plant.h",
24 "integral_hybrid_roll_plant.cc",
25 ],
26 cmd = "$(location //y2023/control_loops/python:roll) --hybrid $(OUTS)",
27 target_compatible_with = ["@platforms//os:linux"],
28 tools = [
29 "//y2023/control_loops/python:roll",
30 ],
31)
32
33cc_library(
34 name = "roll_plants",
35 srcs = [
36 "hybrid_roll_plant.cc",
37 "integral_hybrid_roll_plant.cc",
38 "integral_roll_plant.cc",
39 "roll_plant.cc",
40 ],
41 hdrs = [
42 "hybrid_roll_plant.h",
43 "integral_hybrid_roll_plant.h",
44 "integral_roll_plant.h",
45 "roll_plant.h",
46 ],
47 target_compatible_with = ["@platforms//os:linux"],
48 visibility = ["//visibility:public"],
49 deps = [
50 "//frc971/control_loops:hybrid_state_feedback_loop",
51 "//frc971/control_loops:state_feedback_loop",
52 ],
53)