Sabina Davis | 24d94e0 | 2020-01-31 21:32:41 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//y2020:__subpackages__"]) |
| 2 | |
| 3 | genrule( |
| 4 | name = "genrule_hood", |
| 5 | outs = [ |
| 6 | "hood_plant.h", |
| 7 | "hood_plant.cc", |
| 8 | "integral_hood_plant.h", |
| 9 | "integral_hood_plant.cc", |
| 10 | ], |
| 11 | cmd = "$(location //y2020/control_loops/python:hood) $(OUTS)", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 12 | target_compatible_with = ["@platforms//os:linux"], |
Sabina Davis | 24d94e0 | 2020-01-31 21:32:41 -0800 | [diff] [blame] | 13 | tools = [ |
| 14 | "//y2020/control_loops/python:hood", |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | cc_library( |
| 19 | name = "hood_plants", |
| 20 | srcs = [ |
| 21 | "hood_plant.cc", |
| 22 | "integral_hood_plant.cc", |
| 23 | ], |
| 24 | hdrs = [ |
| 25 | "hood_plant.h", |
| 26 | "integral_hood_plant.h", |
| 27 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 28 | target_compatible_with = ["@platforms//os:linux"], |
Sabina Davis | 24d94e0 | 2020-01-31 21:32:41 -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 | ) |
milind-u | d53408e | 2021-10-21 19:43:58 -0700 | [diff] [blame] | 35 | |
| 36 | cc_library( |
| 37 | name = "hood_encoder_zeroing_estimator", |
| 38 | srcs = [ |
| 39 | "hood_encoder_zeroing_estimator.cc", |
| 40 | ], |
| 41 | hdrs = [ |
| 42 | "hood_encoder_zeroing_estimator.h", |
| 43 | ], |
| 44 | target_compatible_with = ["@platforms//os:linux"], |
| 45 | deps = [ |
Philipp Schrader | 37fdbb6 | 2021-12-18 00:30:37 -0800 | [diff] [blame] | 46 | "//frc971/zeroing", |
milind-u | d53408e | 2021-10-21 19:43:58 -0700 | [diff] [blame] | 47 | "//y2020:constants", |
| 48 | ], |
| 49 | ) |