Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame^] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | load('/aos/build/queues', 'queue_library') |
| 4 | |
Austin Schuh | 48d60c1 | 2017-02-04 21:58:58 -0800 | [diff] [blame] | 5 | genrule( |
| 6 | name = 'genrule_shooter', |
Austin Schuh | 48d60c1 | 2017-02-04 21:58:58 -0800 | [diff] [blame] | 7 | cmd = '$(location //y2017/control_loops/python:shooter) $(OUTS)', |
| 8 | tools = [ |
| 9 | '//y2017/control_loops/python:shooter', |
| 10 | ], |
| 11 | outs = [ |
| 12 | 'shooter_plant.h', |
| 13 | 'shooter_plant.cc', |
| 14 | 'shooter_integral_plant.h', |
| 15 | 'shooter_integral_plant.cc', |
| 16 | ], |
| 17 | ) |
| 18 | |
| 19 | cc_library( |
| 20 | name = 'shooter_plants', |
Brian Silverman | 052e69d | 2017-02-12 16:19:55 -0800 | [diff] [blame] | 21 | visibility = ['//visibility:public'], |
Austin Schuh | 48d60c1 | 2017-02-04 21:58:58 -0800 | [diff] [blame] | 22 | srcs = [ |
| 23 | 'shooter_plant.cc', |
| 24 | 'shooter_integral_plant.cc', |
| 25 | ], |
| 26 | hdrs = [ |
| 27 | 'shooter_plant.h', |
| 28 | 'shooter_integral_plant.h', |
| 29 | ], |
| 30 | deps = [ |
| 31 | '//frc971/control_loops:state_feedback_loop', |
| 32 | ], |
| 33 | ) |
Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame^] | 34 | |
| 35 | cc_library( |
| 36 | name = 'shooter', |
| 37 | visibility = ['//visibility:public'], |
| 38 | srcs = [ |
| 39 | 'shooter.cc', |
| 40 | ], |
| 41 | hdrs = [ |
| 42 | 'shooter.h', |
| 43 | ], |
| 44 | deps = [ |
| 45 | ':shooter_plants', |
| 46 | '//aos/common/controls:control_loop', |
| 47 | '//y2017/control_loops/superstructure:superstructure_queue', |
| 48 | ], |
| 49 | ) |