Austin Schuh | 5593403 | 2017-03-11 12:45:27 -0800 | [diff] [blame^] | 1 | genrule( |
| 2 | name = 'genrule_column', |
| 3 | cmd = '$(location //y2017/control_loops/python:column) $(OUTS)', |
| 4 | tools = [ |
| 5 | '//y2017/control_loops/python:column', |
| 6 | ], |
| 7 | outs = [ |
| 8 | 'column_plant.h', |
| 9 | 'column_plant.cc', |
| 10 | 'column_integral_plant.h', |
| 11 | 'column_integral_plant.cc', |
| 12 | 'stuck_column_integral_plant.cc', |
| 13 | 'stuck_column_integral_plant.h', |
| 14 | ], |
| 15 | ) |
| 16 | |
| 17 | cc_library( |
| 18 | name = 'column_plants', |
| 19 | visibility = ['//visibility:public'], |
| 20 | srcs = [ |
| 21 | 'column_plant.cc', |
| 22 | 'column_integral_plant.cc', |
| 23 | ], |
| 24 | hdrs = [ |
| 25 | 'column_plant.h', |
| 26 | 'column_integral_plant.h', |
| 27 | ], |
| 28 | deps = [ |
| 29 | '//frc971/control_loops:state_feedback_loop', |
| 30 | ], |
| 31 | ) |
| 32 | |
| 33 | cc_library( |
| 34 | name = 'column_zeroing', |
| 35 | srcs = [ |
| 36 | 'column_zeroing.cc', |
| 37 | ], |
| 38 | hdrs = [ |
| 39 | 'column_zeroing.h', |
| 40 | ], |
| 41 | deps = [ |
| 42 | '//frc971/control_loops:queues', |
| 43 | '//frc971/zeroing:wrap', |
| 44 | '//frc971/zeroing:zeroing', |
| 45 | '//frc971:constants', |
| 46 | '//y2017/control_loops/superstructure:superstructure_queue', |
| 47 | '//y2017:constants', |
| 48 | ], |
| 49 | ) |
| 50 | |
| 51 | cc_test( |
| 52 | name = 'column_zeroing_test', |
| 53 | srcs = [ |
| 54 | 'column_zeroing_test.cc', |
| 55 | ], |
| 56 | deps = [ |
| 57 | ':column_zeroing', |
| 58 | '//aos/testing:test_shm', |
| 59 | '//frc971/control_loops:position_sensor_sim', |
| 60 | '//frc971/control_loops:team_number_test_environment', |
| 61 | '//y2017/control_loops/superstructure:superstructure_queue', |
| 62 | '//y2017:constants', |
| 63 | ], |
| 64 | ) |