Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//y2019:__subpackages__"]) |
| 2 | |
| 3 | genrule( |
| 4 | name = "genrule_stilts", |
| 5 | outs = [ |
| 6 | "stilts_plant.h", |
| 7 | "stilts_plant.cc", |
| 8 | "integral_stilts_plant.h", |
| 9 | "integral_stilts_plant.cc", |
| 10 | ], |
| 11 | cmd = "$(location //y2019/control_loops/python:stilts) $(OUTS)", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 12 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 13 | tools = [ |
| 14 | "//y2019/control_loops/python:stilts", |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | cc_library( |
| 19 | name = "stilts_plants", |
| 20 | srcs = [ |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 21 | "integral_stilts_plant.cc", |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 22 | "stilts_plant.cc", |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 23 | ], |
| 24 | hdrs = [ |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 25 | "integral_stilts_plant.h", |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 26 | "stilts_plant.h", |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 27 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 28 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 29 | visibility = ["//visibility:public"], |
| 30 | deps = [ |
| 31 | "//frc971/control_loops:hybrid_state_feedback_loop", |
| 32 | "//frc971/control_loops:state_feedback_loop", |
| 33 | ], |
| 34 | ) |