Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 1 | genrule( |
| 2 | name = "genrule_intake", |
| 3 | outs = [ |
| 4 | "intake_plant.h", |
| 5 | "intake_plant.cc", |
| 6 | "intake_delayed_plant.h", |
| 7 | "intake_delayed_plant.cc", |
| 8 | ], |
| 9 | cmd = "$(location //y2018/control_loops/python:intake) $(OUTS)", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 10 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 11 | tools = [ |
| 12 | "//y2018/control_loops/python:intake", |
| 13 | ], |
| 14 | ) |
| 15 | |
| 16 | cc_library( |
| 17 | name = "intake_plants", |
| 18 | srcs = [ |
| 19 | "intake_delayed_plant.cc", |
| 20 | "intake_plant.cc", |
| 21 | ], |
| 22 | hdrs = [ |
| 23 | "intake_delayed_plant.h", |
| 24 | "intake_plant.h", |
| 25 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 26 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 27 | visibility = ["//visibility:public"], |
| 28 | deps = [ |
| 29 | "//frc971/control_loops:state_feedback_loop", |
| 30 | ], |
| 31 | ) |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 32 | |
| 33 | cc_library( |
| 34 | name = "intake", |
| 35 | srcs = [ |
| 36 | "intake.cc", |
| 37 | ], |
| 38 | hdrs = [ |
| 39 | "intake.h", |
| 40 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 41 | target_compatible_with = ["@platforms//os:linux"], |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 42 | visibility = ["//visibility:public"], |
| 43 | deps = [ |
| 44 | ":intake_plants", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 45 | "//aos:math", |
James Kuszmaul | 6175066 | 2021-06-21 21:32:33 -0700 | [diff] [blame] | 46 | "//frc971/control_loops:control_loop", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 47 | "//frc971/control_loops:control_loops_fbs", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 48 | "//frc971/zeroing", |
| 49 | "//y2018:constants", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 50 | "//y2018/control_loops/superstructure:superstructure_output_fbs", |
| 51 | "//y2018/control_loops/superstructure:superstructure_position_fbs", |
| 52 | "//y2018/control_loops/superstructure:superstructure_status_fbs", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 53 | ], |
| 54 | ) |