Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame^] | 1 | package(default_visibility = ["//visibility:public"]) |
Neil Balch | d5206fe | 2018-01-24 20:25:12 -0800 | [diff] [blame] | 2 | |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame^] | 3 | load("//aos/build:queues.bzl", "queue_library") |
Neil Balch | d5206fe | 2018-01-24 20:25:12 -0800 | [diff] [blame] | 4 | |
| 5 | queue_library( |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame^] | 6 | name = "superstructure_queue", |
| 7 | srcs = [ |
| 8 | "superstructure.q", |
| 9 | ], |
| 10 | deps = [ |
| 11 | "//aos/common/controls:control_loop_queues", |
| 12 | "//frc971/control_loops:queues", |
| 13 | ], |
Neil Balch | d5206fe | 2018-01-24 20:25:12 -0800 | [diff] [blame] | 14 | ) |
| 15 | |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame^] | 16 | cc_library( |
| 17 | name = "superstructure_lib", |
| 18 | srcs = [ |
| 19 | "superstructure.cc", |
| 20 | ], |
| 21 | hdrs = [ |
| 22 | "superstructure.h", |
| 23 | ], |
| 24 | deps = [ |
| 25 | ":superstructure_queue", |
| 26 | "//aos/common/controls:control_loop", |
| 27 | "//frc971/control_loops:queues", |
| 28 | "//y2018:constants", |
| 29 | "//y2018/control_loops/superstructure/intake", |
| 30 | ], |
| 31 | ) |
| 32 | |
| 33 | cc_test( |
| 34 | name = "superstructure_lib_test", |
| 35 | srcs = [ |
| 36 | "superstructure_lib_test.cc", |
| 37 | ], |
| 38 | deps = [ |
| 39 | ":superstructure_lib", |
| 40 | ":superstructure_queue", |
| 41 | "//aos/common:math", |
| 42 | "//aos/common:queues", |
| 43 | "//aos/common:time", |
| 44 | "//aos/common/controls:control_loop_test", |
| 45 | "//aos/testing:googletest", |
| 46 | "//frc971/control_loops:position_sensor_sim", |
| 47 | "//frc971/control_loops:team_number_test_environment", |
| 48 | "//y2018/control_loops/superstructure/intake:intake_plants", |
| 49 | ], |
| 50 | ) |
| 51 | |
| 52 | cc_binary( |
| 53 | name = "superstructure", |
| 54 | srcs = [ |
| 55 | "superstructure_main.cc", |
| 56 | ], |
| 57 | deps = [ |
| 58 | ":superstructure_lib", |
| 59 | ":superstructure_queue", |
| 60 | "//aos/linux_code:init", |
| 61 | ], |
| 62 | ) |