blob: 8612d0bf4c758e237162a1a4a6c8f7a834c24718 [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",
Austin Schuh1bf8a212019-05-26 22:13:14 -070061 "//aos/events:shm-event-loop",
Austin Schuhbfb04122019-05-22 21:16:51 -070062 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040063)
64
65cc_library(
Austin Schuhbfb04122019-05-22 21:16:51 -070066 name = "autonomous_action_lib",
67 srcs = [
68 "autonomous_actor.cc",
69 ],
70 hdrs = [
71 "autonomous_actor.h",
72 ],
73 deps = [
74 "//aos/actions:action_lib",
75 "//aos/events:event-loop",
76 "//aos/logging",
77 "//aos/util:phased_loop",
78 "//frc971/autonomous:base_autonomous_actor",
79 "//frc971/control_loops/drivetrain:drivetrain_config",
80 "//frc971/control_loops/drivetrain:drivetrain_queue",
81 "//y2014/actors:shoot_action_lib",
82 "//y2014/control_loops/claw:claw_queue",
83 "//y2014/control_loops/drivetrain:drivetrain_base",
84 "//y2014/control_loops/shooter:shooter_queue",
85 "//y2014/queues:auto_mode",
86 "//y2014/queues:hot_goal",
87 "//y2014/queues:profile_params",
88 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040089)
90
91cc_binary(
Austin Schuhbfb04122019-05-22 21:16:51 -070092 name = "autonomous_action",
93 srcs = [
94 "autonomous_actor_main.cc",
95 ],
96 deps = [
97 ":autonomous_action_lib",
98 "//aos:init",
99 "//aos/events:shm-event-loop",
100 "//frc971/autonomous:auto_queue",
101 ],
Brian Silverman8c374e02015-09-06 23:02:21 -0400102)