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 = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 11 | "//aos/controls:control_loop_queues", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 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", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 26 | "//aos/controls:control_loop", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 27 | "//frc971/control_loops:queues", |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 28 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 29 | "//y2018:constants", |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 30 | "//y2018:status_light", |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 31 | "//y2018/control_loops/superstructure/arm", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 32 | "//y2018/control_loops/superstructure/intake", |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 33 | "//y2018/vision:vision_queue", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 34 | ], |
| 35 | ) |
| 36 | |
| 37 | cc_test( |
| 38 | name = "superstructure_lib_test", |
Austin Schuh | e40ea51 | 2019-02-09 21:54:25 -0800 | [diff] [blame^] | 39 | timeout = "long", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 40 | srcs = [ |
| 41 | "superstructure_lib_test.cc", |
| 42 | ], |
| 43 | deps = [ |
| 44 | ":superstructure_lib", |
| 45 | ":superstructure_queue", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 46 | "//aos:math", |
| 47 | "//aos:queues", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 48 | "//aos/controls:control_loop_test", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 49 | "//aos/testing:googletest", |
Austin Schuh | e40ea51 | 2019-02-09 21:54:25 -0800 | [diff] [blame^] | 50 | "//aos/time", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 51 | "//frc971/control_loops:position_sensor_sim", |
| 52 | "//frc971/control_loops:team_number_test_environment", |
| 53 | "//y2018/control_loops/superstructure/intake:intake_plants", |
| 54 | ], |
| 55 | ) |
| 56 | |
| 57 | cc_binary( |
| 58 | name = "superstructure", |
| 59 | srcs = [ |
| 60 | "superstructure_main.cc", |
| 61 | ], |
| 62 | deps = [ |
| 63 | ":superstructure_lib", |
| 64 | ":superstructure_queue", |
John Park | 398c74a | 2018-10-20 21:17:39 -0700 | [diff] [blame] | 65 | "//aos:init", |
Sabina Davis | 8d20ca8 | 2018-02-19 13:17:45 -0800 | [diff] [blame] | 66 | ], |
| 67 | ) |
Neil Balch | 6040a35 | 2018-03-04 16:02:56 -0800 | [diff] [blame] | 68 | |
| 69 | cc_library( |
| 70 | name = "debouncer", |
Neil Balch | 6040a35 | 2018-03-04 16:02:56 -0800 | [diff] [blame] | 71 | srcs = [ |
| 72 | "debouncer.cc", |
| 73 | ], |
Austin Schuh | e40ea51 | 2019-02-09 21:54:25 -0800 | [diff] [blame^] | 74 | hdrs = [ |
| 75 | "debouncer.h", |
| 76 | ], |
Neil Balch | 6040a35 | 2018-03-04 16:02:56 -0800 | [diff] [blame] | 77 | ) |
| 78 | |
| 79 | cc_test( |
| 80 | name = "debouncer_test", |
| 81 | srcs = [ |
| 82 | "debouncer_test.cc", |
| 83 | ], |
| 84 | deps = [ |
| 85 | ":debouncer", |
| 86 | "//aos/testing:googletest", |
| 87 | ], |
| 88 | ) |