blob: cb4a8b7adadb928c2e381d9099b21b7a942c3122 [file] [log] [blame]
Austin Schuhbfb04122019-05-22 21:16:51 -07001load("//aos/build:queues.bzl", "queue_library")
Brian Silverman8c374e02015-09-06 23:02:21 -04002
3filegroup(
Austin Schuhbfb04122019-05-22 21:16:51 -07004 name = "binaries",
5 srcs = [
6 ":autonomous_action",
7 ":shoot_action",
8 ],
9 visibility = ["//visibility:public"],
Brian Silverman8c374e02015-09-06 23:02:21 -040010)
11
Lee Mracek6821fe02018-11-01 17:27:30 -040012filegroup(
Austin Schuhbfb04122019-05-22 21:16:51 -070013 name = "binaries.stripped",
14 srcs = [
15 ":autonomous_action.stripped",
16 ":shoot_action.stripped",
17 ],
18 visibility = ["//visibility:public"],
Lee Mracek6821fe02018-11-01 17:27:30 -040019)
20
Brian Silverman8c374e02015-09-06 23:02:21 -040021queue_library(
Austin Schuhbfb04122019-05-22 21:16:51 -070022 name = "shoot_action_queue",
23 srcs = [
24 "shoot_action.q",
25 ],
26 deps = [
27 "//aos/actions:action_queue",
28 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040029)
30
31cc_library(
Austin Schuhbfb04122019-05-22 21:16:51 -070032 name = "shoot_action_lib",
33 srcs = [
34 "shoot_actor.cc",
35 ],
36 hdrs = [
37 "shoot_actor.h",
38 ],
39 visibility = ["//visibility:public"],
40 deps = [
41 ":shoot_action_queue",
42 "//aos/actions:action_lib",
43 "//aos/logging",
44 "//frc971/control_loops/drivetrain:drivetrain_queue",
45 "//y2014:constants",
46 "//y2014/control_loops/claw:claw_queue",
47 "//y2014/control_loops/shooter:shooter_queue",
48 "//y2014/queues:profile_params",
49 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040050)
51
52cc_binary(
Austin Schuhbfb04122019-05-22 21:16:51 -070053 name = "shoot_action",
54 srcs = [
55 "shoot_actor_main.cc",
56 ],
57 deps = [
58 ":shoot_action_lib",
59 ":shoot_action_queue",
60 "//aos:init",
61 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040062)
63
64cc_library(
Austin Schuhbfb04122019-05-22 21:16:51 -070065 name = "autonomous_action_lib",
66 srcs = [
67 "autonomous_actor.cc",
68 ],
69 hdrs = [
70 "autonomous_actor.h",
71 ],
72 deps = [
73 "//aos/actions:action_lib",
74 "//aos/events:event-loop",
75 "//aos/logging",
76 "//aos/util:phased_loop",
77 "//frc971/autonomous:base_autonomous_actor",
78 "//frc971/control_loops/drivetrain:drivetrain_config",
79 "//frc971/control_loops/drivetrain:drivetrain_queue",
80 "//y2014/actors:shoot_action_lib",
81 "//y2014/control_loops/claw:claw_queue",
82 "//y2014/control_loops/drivetrain:drivetrain_base",
83 "//y2014/control_loops/shooter:shooter_queue",
84 "//y2014/queues:auto_mode",
85 "//y2014/queues:hot_goal",
86 "//y2014/queues:profile_params",
87 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040088)
89
90cc_binary(
Austin Schuhbfb04122019-05-22 21:16:51 -070091 name = "autonomous_action",
92 srcs = [
93 "autonomous_actor_main.cc",
94 ],
95 deps = [
96 ":autonomous_action_lib",
97 "//aos:init",
98 "//aos/events:shm-event-loop",
99 "//frc971/autonomous:auto_queue",
100 ],
Brian Silverman8c374e02015-09-06 23:02:21 -0400101)