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