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