blob: efe0c1d55e1378290d739059bfdd93b3271d3493 [file] [log] [blame]
Sabina Davis8d20ca82018-02-19 13:17:45 -08001package(default_visibility = ["//visibility:public"])
Neil Balchd5206fe2018-01-24 20:25:12 -08002
Sabina Davis8d20ca82018-02-19 13:17:45 -08003load("//aos/build:queues.bzl", "queue_library")
Neil Balchd5206fe2018-01-24 20:25:12 -08004
5queue_library(
Sabina Davis8d20ca82018-02-19 13:17:45 -08006 name = "superstructure_queue",
7 srcs = [
8 "superstructure.q",
9 ],
10 deps = [
John Park33858a32018-09-28 23:05:48 -070011 "//aos/controls:control_loop_queues",
Sabina Davis8d20ca82018-02-19 13:17:45 -080012 "//frc971/control_loops:queues",
13 ],
Neil Balchd5206fe2018-01-24 20:25:12 -080014)
15
Sabina Davis8d20ca82018-02-19 13:17:45 -080016cc_library(
17 name = "superstructure_lib",
18 srcs = [
19 "superstructure.cc",
20 ],
21 hdrs = [
22 "superstructure.h",
23 ],
24 deps = [
25 ":superstructure_queue",
John Park33858a32018-09-28 23:05:48 -070026 "//aos/controls:control_loop",
Sabina Davis8d20ca82018-02-19 13:17:45 -080027 "//frc971/control_loops:queues",
Austin Schuh8d5fff42018-05-30 20:44:12 -070028 "//frc971/control_loops/drivetrain:drivetrain_queue",
Sabina Davis8d20ca82018-02-19 13:17:45 -080029 "//y2018:constants",
Austin Schuh8d5fff42018-05-30 20:44:12 -070030 "//y2018:status_light",
Austin Schuhcb091712018-02-21 20:01:55 -080031 "//y2018/control_loops/superstructure/arm",
Sabina Davis8d20ca82018-02-19 13:17:45 -080032 "//y2018/control_loops/superstructure/intake",
Austin Schuh8d5fff42018-05-30 20:44:12 -070033 "//y2018/vision:vision_queue",
Sabina Davis8d20ca82018-02-19 13:17:45 -080034 ],
35)
36
37cc_test(
38 name = "superstructure_lib_test",
39 srcs = [
40 "superstructure_lib_test.cc",
41 ],
42 deps = [
43 ":superstructure_lib",
44 ":superstructure_queue",
John Park33858a32018-09-28 23:05:48 -070045 "//aos:math",
46 "//aos:queues",
47 "//aos/time:time",
48 "//aos/controls:control_loop_test",
Sabina Davis8d20ca82018-02-19 13:17:45 -080049 "//aos/testing:googletest",
50 "//frc971/control_loops:position_sensor_sim",
51 "//frc971/control_loops:team_number_test_environment",
52 "//y2018/control_loops/superstructure/intake:intake_plants",
53 ],
54)
55
56cc_binary(
57 name = "superstructure",
58 srcs = [
59 "superstructure_main.cc",
60 ],
61 deps = [
62 ":superstructure_lib",
63 ":superstructure_queue",
John Park398c74a2018-10-20 21:17:39 -070064 "//aos:init",
Sabina Davis8d20ca82018-02-19 13:17:45 -080065 ],
66)
Neil Balch6040a352018-03-04 16:02:56 -080067
68cc_library(
69 name = "debouncer",
70 hdrs = [
71 "debouncer.h",
72 ],
73 srcs = [
74 "debouncer.cc",
75 ],
76)
77
78cc_test(
79 name = "debouncer_test",
80 srcs = [
81 "debouncer_test.cc",
82 ],
83 deps = [
84 ":debouncer",
85 "//aos/testing:googletest",
86 ],
87)