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)", |
| 12 | tools = [ |
| 13 | "//y2017/control_loops/python:column", |
| 14 | ], |
Austin Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame] | 15 | ) |
| 16 | |
| 17 | cc_library( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 18 | name = "column_plants", |
| 19 | srcs = [ |
| 20 | "column_integral_plant.cc", |
| 21 | "column_plant.cc", |
| 22 | "stuck_column_integral_plant.cc", |
| 23 | ], |
| 24 | hdrs = [ |
| 25 | "column_integral_plant.h", |
| 26 | "column_plant.h", |
| 27 | "stuck_column_integral_plant.h", |
| 28 | ], |
| 29 | visibility = ["//visibility:public"], |
| 30 | deps = [ |
| 31 | "//frc971/control_loops:state_feedback_loop", |
| 32 | ], |
Austin Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame] | 33 | ) |
| 34 | |
| 35 | cc_library( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 36 | name = "column", |
| 37 | srcs = [ |
| 38 | "column.cc", |
| 39 | ], |
| 40 | hdrs = [ |
| 41 | "column.h", |
| 42 | ], |
| 43 | visibility = ["//visibility:public"], |
| 44 | deps = [ |
| 45 | ":column_plants", |
| 46 | ":column_zeroing", |
| 47 | "//aos:math", |
| 48 | "//aos/controls:control_loop", |
| 49 | "//frc971/control_loops:profiled_subsystem", |
| 50 | "//y2017:constants", |
| 51 | "//y2017/control_loops/superstructure:superstructure_position_fbs", |
| 52 | "//y2017/control_loops/superstructure:superstructure_status_fbs", |
| 53 | "//y2017/control_loops/superstructure:vision_time_adjuster", |
| 54 | "//y2017/control_loops/superstructure/intake", |
| 55 | ], |
Austin Schuh | d5ccb86 | 2017-03-11 22:06:36 -0800 | [diff] [blame] | 56 | ) |
| 57 | |
| 58 | cc_library( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 59 | name = "column_zeroing", |
| 60 | srcs = [ |
| 61 | "column_zeroing.cc", |
| 62 | ], |
| 63 | hdrs = [ |
| 64 | "column_zeroing.h", |
| 65 | ], |
| 66 | deps = [ |
| 67 | "//frc971:constants", |
| 68 | "//frc971/control_loops:profiled_subsystem_fbs", |
| 69 | "//frc971/zeroing", |
| 70 | "//frc971/zeroing:wrap", |
| 71 | "//y2017:constants", |
| 72 | "//y2017/control_loops/superstructure:superstructure_position_fbs", |
| 73 | "//y2017/control_loops/superstructure:superstructure_status_fbs", |
| 74 | ], |
Austin Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame] | 75 | ) |
| 76 | |
| 77 | cc_test( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 78 | name = "column_zeroing_test", |
| 79 | srcs = [ |
| 80 | "column_zeroing_test.cc", |
| 81 | ], |
| 82 | deps = [ |
| 83 | ":column_zeroing", |
| 84 | "//aos/testing:test_shm", |
| 85 | "//frc971/control_loops:position_sensor_sim", |
| 86 | "//frc971/control_loops:team_number_test_environment", |
| 87 | "//y2017:constants", |
| 88 | ], |
Austin Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame] | 89 | ) |