blob: 2d83482be6d9d3c4cdf780786c8d4926a57baa3f [file] [log] [blame]
Austin Schuh55934032017-03-11 12:45:27 -08001genrule(
Alex Perrycb7da4b2019-08-28 19:35:56 -07002 name = "genrule_column",
3 outs = [
4 "column_plant.h",
5 "column_plant.cc",
6 "column_integral_plant.h",
7 "column_integral_plant.cc",
8 "stuck_column_integral_plant.h",
9 "stuck_column_integral_plant.cc",
10 ],
11 cmd = "$(location //y2017/control_loops/python:column) $(OUTS)",
Philipp Schraderdada1072020-11-24 11:34:46 -080012 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070013 tools = [
14 "//y2017/control_loops/python:column",
15 ],
Austin Schuh55934032017-03-11 12:45:27 -080016)
17
18cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070019 name = "column_plants",
20 srcs = [
21 "column_integral_plant.cc",
22 "column_plant.cc",
23 "stuck_column_integral_plant.cc",
24 ],
25 hdrs = [
26 "column_integral_plant.h",
27 "column_plant.h",
28 "stuck_column_integral_plant.h",
29 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080030 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070031 visibility = ["//visibility:public"],
32 deps = [
33 "//frc971/control_loops:state_feedback_loop",
34 ],
Austin Schuh55934032017-03-11 12:45:27 -080035)
36
37cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070038 name = "column",
39 srcs = [
40 "column.cc",
41 ],
42 hdrs = [
43 "column.h",
44 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080045 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070046 visibility = ["//visibility:public"],
47 deps = [
48 ":column_plants",
49 ":column_zeroing",
50 "//aos:math",
James Kuszmaul61750662021-06-21 21:32:33 -070051 "//frc971/control_loops:control_loop",
Alex Perrycb7da4b2019-08-28 19:35:56 -070052 "//frc971/control_loops:profiled_subsystem",
53 "//y2017:constants",
54 "//y2017/control_loops/superstructure:superstructure_position_fbs",
55 "//y2017/control_loops/superstructure:superstructure_status_fbs",
56 "//y2017/control_loops/superstructure:vision_time_adjuster",
57 "//y2017/control_loops/superstructure/intake",
58 ],
Austin Schuhd5ccb862017-03-11 22:06:36 -080059)
60
61cc_library(
Alex Perrycb7da4b2019-08-28 19:35:56 -070062 name = "column_zeroing",
63 srcs = [
64 "column_zeroing.cc",
65 ],
66 hdrs = [
67 "column_zeroing.h",
68 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080069 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070070 deps = [
71 "//frc971:constants",
72 "//frc971/control_loops:profiled_subsystem_fbs",
73 "//frc971/zeroing",
74 "//frc971/zeroing:wrap",
75 "//y2017:constants",
76 "//y2017/control_loops/superstructure:superstructure_position_fbs",
77 "//y2017/control_loops/superstructure:superstructure_status_fbs",
78 ],
Austin Schuh55934032017-03-11 12:45:27 -080079)
80
81cc_test(
Alex Perrycb7da4b2019-08-28 19:35:56 -070082 name = "column_zeroing_test",
83 srcs = [
84 "column_zeroing_test.cc",
85 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080086 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070087 deps = [
88 ":column_zeroing",
Alex Perrycb7da4b2019-08-28 19:35:56 -070089 "//frc971/control_loops:position_sensor_sim",
90 "//frc971/control_loops:team_number_test_environment",
91 "//y2017:constants",
92 ],
Austin Schuh55934032017-03-11 12:45:27 -080093)