Austin Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame] | 1 | genrule( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 2 | 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 Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 12 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 13 | tools = [ |
| 14 | "//y2017/control_loops/python:column", |
| 15 | ], |
Austin Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | cc_library( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 19 | 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 Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 30 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 31 | visibility = ["//visibility:public"], |
| 32 | deps = [ |
| 33 | "//frc971/control_loops:state_feedback_loop", |
| 34 | ], |
Austin Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame] | 35 | ) |
| 36 | |
| 37 | cc_library( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 38 | name = "column", |
| 39 | srcs = [ |
| 40 | "column.cc", |
| 41 | ], |
| 42 | hdrs = [ |
| 43 | "column.h", |
| 44 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 45 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 46 | visibility = ["//visibility:public"], |
| 47 | deps = [ |
| 48 | ":column_plants", |
| 49 | ":column_zeroing", |
| 50 | "//aos:math", |
James Kuszmaul | 6175066 | 2021-06-21 21:32:33 -0700 | [diff] [blame^] | 51 | "//frc971/control_loops:control_loop", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 52 | "//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 Schuh | d5ccb86 | 2017-03-11 22:06:36 -0800 | [diff] [blame] | 59 | ) |
| 60 | |
| 61 | cc_library( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 62 | name = "column_zeroing", |
| 63 | srcs = [ |
| 64 | "column_zeroing.cc", |
| 65 | ], |
| 66 | hdrs = [ |
| 67 | "column_zeroing.h", |
| 68 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 69 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 70 | 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 Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame] | 79 | ) |
| 80 | |
| 81 | cc_test( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 82 | name = "column_zeroing_test", |
| 83 | srcs = [ |
| 84 | "column_zeroing_test.cc", |
| 85 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 86 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 87 | deps = [ |
| 88 | ":column_zeroing", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 89 | "//frc971/control_loops:position_sensor_sim", |
| 90 | "//frc971/control_loops:team_number_test_environment", |
| 91 | "//y2017:constants", |
| 92 | ], |
Austin Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame] | 93 | ) |