blob: 6e1cc7f900d6b5feb3694f341d03e26f9e29034b [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",
James Kuszmaulec635d22023-08-12 18:39:24 -070074 "//frc971/zeroing:hall_effect_and_position",
75 "//frc971/zeroing:pulse_index",
Alex Perrycb7da4b2019-08-28 19:35:56 -070076 "//frc971/zeroing:wrap",
77 "//y2017:constants",
78 "//y2017/control_loops/superstructure:superstructure_position_fbs",
79 "//y2017/control_loops/superstructure:superstructure_status_fbs",
80 ],
Austin Schuh55934032017-03-11 12:45:27 -080081)
82
83cc_test(
Alex Perrycb7da4b2019-08-28 19:35:56 -070084 name = "column_zeroing_test",
85 srcs = [
86 "column_zeroing_test.cc",
87 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080088 target_compatible_with = ["@platforms//os:linux"],
Alex Perrycb7da4b2019-08-28 19:35:56 -070089 deps = [
90 ":column_zeroing",
Alex Perrycb7da4b2019-08-28 19:35:56 -070091 "//frc971/control_loops:position_sensor_sim",
92 "//frc971/control_loops:team_number_test_environment",
93 "//y2017:constants",
94 ],
Austin Schuh55934032017-03-11 12:45:27 -080095)