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", |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 29 | "//y2018/control_loops/superstructure/arm", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 30 | "//y2018/control_loops/superstructure/intake", |
| 31 | ], |
| 32 | ) |
| 33 | |
| 34 | cc_test( |
| 35 | name = "superstructure_lib_test", |
| 36 | srcs = [ |
| 37 | "superstructure_lib_test.cc", |
| 38 | ], |
| 39 | deps = [ |
| 40 | ":superstructure_lib", |
| 41 | ":superstructure_queue", |
| 42 | "//aos/common:math", |
| 43 | "//aos/common:queues", |
| 44 | "//aos/common:time", |
| 45 | "//aos/common/controls:control_loop_test", |
| 46 | "//aos/testing:googletest", |
| 47 | "//frc971/control_loops:position_sensor_sim", |
| 48 | "//frc971/control_loops:team_number_test_environment", |
| 49 | "//y2018/control_loops/superstructure/intake:intake_plants", |
| 50 | ], |
| 51 | ) |
| 52 | |
| 53 | cc_binary( |
| 54 | name = "superstructure", |
| 55 | srcs = [ |
| 56 | "superstructure_main.cc", |
| 57 | ], |
| 58 | deps = [ |
| 59 | ":superstructure_lib", |
| 60 | ":superstructure_queue", |
| 61 | "//aos/linux_code:init", |
| 62 | ], |
| 63 | ) |
Neil Balch | 6040a35 | 2018-03-04 16:02:56 -0800 | [diff] [blame^] | 64 | |
| 65 | cc_library( |
| 66 | name = "debouncer", |
| 67 | hdrs = [ |
| 68 | "debouncer.h", |
| 69 | ], |
| 70 | srcs = [ |
| 71 | "debouncer.cc", |
| 72 | ], |
| 73 | ) |
| 74 | |
| 75 | cc_test( |
| 76 | name = "debouncer_test", |
| 77 | srcs = [ |
| 78 | "debouncer_test.cc", |
| 79 | ], |
| 80 | deps = [ |
| 81 | ":debouncer", |
| 82 | "//aos/testing:googletest", |
| 83 | ], |
| 84 | ) |