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)", |
| 10 | tools = [ |
| 11 | "//y2018/control_loops/python:intake", |
| 12 | ], |
| 13 | ) |
| 14 | |
| 15 | cc_library( |
| 16 | name = "intake_plants", |
| 17 | srcs = [ |
| 18 | "intake_delayed_plant.cc", |
| 19 | "intake_plant.cc", |
| 20 | ], |
| 21 | hdrs = [ |
| 22 | "intake_delayed_plant.h", |
| 23 | "intake_plant.h", |
| 24 | ], |
| 25 | visibility = ["//visibility:public"], |
| 26 | deps = [ |
| 27 | "//frc971/control_loops:state_feedback_loop", |
| 28 | ], |
| 29 | ) |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame^] | 30 | |
| 31 | cc_library( |
| 32 | name = "intake", |
| 33 | srcs = [ |
| 34 | "intake.cc", |
| 35 | ], |
| 36 | hdrs = [ |
| 37 | "intake.h", |
| 38 | ], |
| 39 | visibility = ["//visibility:public"], |
| 40 | deps = [ |
| 41 | ":intake_plants", |
| 42 | "//aos/common:math", |
| 43 | "//aos/common/controls:control_loop", |
| 44 | "//aos/common/logging:queue_logging", |
| 45 | "//frc971/control_loops:queues", |
| 46 | "//frc971/zeroing", |
| 47 | "//y2018:constants", |
| 48 | "//y2018/control_loops/superstructure:superstructure_queue", |
| 49 | ], |
| 50 | ) |