Austin Schuh | 48d60c1 | 2017-02-04 21:58:58 -0800 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | genrule( |
| 4 | name = 'genrule_hood', |
| 5 | visibility = ['//visibility:private'], |
| 6 | cmd = '$(location //y2017/control_loops/python:hood) $(OUTS)', |
| 7 | tools = [ |
| 8 | '//y2017/control_loops/python:hood', |
| 9 | ], |
| 10 | outs = [ |
| 11 | 'hood_plant.h', |
| 12 | 'hood_plant.cc', |
| 13 | 'hood_integral_plant.h', |
| 14 | 'hood_integral_plant.cc', |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | cc_library( |
| 19 | name = 'hood_plants', |
| 20 | srcs = [ |
| 21 | 'hood_plant.cc', |
| 22 | 'hood_integral_plant.cc', |
| 23 | ], |
| 24 | hdrs = [ |
| 25 | 'hood_plant.h', |
| 26 | 'hood_integral_plant.h', |
| 27 | ], |
| 28 | deps = [ |
| 29 | '//frc971/control_loops:state_feedback_loop', |
| 30 | ], |
| 31 | ) |
Austin Schuh | 87c1063 | 2017-02-05 19:02:17 -0800 | [diff] [blame^] | 32 | |
| 33 | cc_library( |
| 34 | name = 'hood', |
| 35 | srcs = [ |
| 36 | 'hood.cc', |
| 37 | ], |
| 38 | hdrs = [ |
| 39 | 'hood.h', |
| 40 | ], |
| 41 | deps = [ |
| 42 | ':hood_plants', |
| 43 | '//frc971/control_loops:profiled_subsystem', |
| 44 | '//y2017/control_loops/superstructure:superstructure_queue', |
| 45 | '//y2017:constants', |
| 46 | ], |
| 47 | ) |