blob: 82255ab8642bcc31f1dd0282007bb7d7b603af28 [file] [log] [blame]
Brian Silverman8c374e02015-09-06 23:02:21 -04001filegroup(
Austin Schuhbfb04122019-05-22 21:16:51 -07002 name = "binaries",
3 srcs = [
4 ":autonomous_action",
5 ":shoot_action",
6 ],
7 visibility = ["//visibility:public"],
Brian Silverman8c374e02015-09-06 23:02:21 -04008)
9
Lee Mracek6821fe02018-11-01 17:27:30 -040010filegroup(
Austin Schuhbfb04122019-05-22 21:16:51 -070011 name = "binaries.stripped",
12 srcs = [
13 ":autonomous_action.stripped",
14 ":shoot_action.stripped",
15 ],
16 visibility = ["//visibility:public"],
Lee Mracek6821fe02018-11-01 17:27:30 -040017)
18
Brian Silverman8c374e02015-09-06 23:02:21 -040019cc_library(
Austin Schuhbfb04122019-05-22 21:16:51 -070020 name = "shoot_action_lib",
21 srcs = [
22 "shoot_actor.cc",
23 ],
24 hdrs = [
25 "shoot_actor.h",
26 ],
27 visibility = ["//visibility:public"],
28 deps = [
Austin Schuhbfb04122019-05-22 21:16:51 -070029 "//aos/actions:action_lib",
30 "//aos/logging",
Austin Schuhbfb04122019-05-22 21:16:51 -070031 "//y2014:constants",
Alex Perrycb7da4b2019-08-28 19:35:56 -070032 "//y2014/control_loops/claw:claw_goal_fbs",
33 "//y2014/control_loops/claw:claw_status_fbs",
34 "//y2014/control_loops/shooter:shooter_goal_fbs",
35 "//y2014/control_loops/shooter:shooter_status_fbs",
Austin Schuhbfb04122019-05-22 21:16:51 -070036 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040037)
38
39cc_binary(
Austin Schuhbfb04122019-05-22 21:16:51 -070040 name = "shoot_action",
41 srcs = [
42 "shoot_actor_main.cc",
43 ],
44 deps = [
45 ":shoot_action_lib",
Austin Schuhbfb04122019-05-22 21:16:51 -070046 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -070047 "//aos/events:shm_event_loop",
Austin Schuhbfb04122019-05-22 21:16:51 -070048 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040049)
50
51cc_library(
Austin Schuhbfb04122019-05-22 21:16:51 -070052 name = "autonomous_action_lib",
53 srcs = [
54 "autonomous_actor.cc",
55 ],
56 hdrs = [
57 "autonomous_actor.h",
58 ],
59 deps = [
60 "//aos/actions:action_lib",
Alex Perrycb7da4b2019-08-28 19:35:56 -070061 "//aos/events:event_loop",
Austin Schuhbfb04122019-05-22 21:16:51 -070062 "//aos/logging",
63 "//aos/util:phased_loop",
64 "//frc971/autonomous:base_autonomous_actor",
65 "//frc971/control_loops/drivetrain:drivetrain_config",
Austin Schuhbfb04122019-05-22 21:16:51 -070066 "//y2014/actors:shoot_action_lib",
Alex Perrycb7da4b2019-08-28 19:35:56 -070067 "//y2014/control_loops/claw:claw_goal_fbs",
68 "//y2014/control_loops/claw:claw_status_fbs",
Austin Schuhbfb04122019-05-22 21:16:51 -070069 "//y2014/control_loops/drivetrain:drivetrain_base",
Alex Perrycb7da4b2019-08-28 19:35:56 -070070 "//y2014/control_loops/shooter:shooter_goal_fbs",
71 "//y2014/queues:auto_mode_fbs",
72 "//y2014/queues:hot_goal_fbs",
Austin Schuhbfb04122019-05-22 21:16:51 -070073 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040074)
75
76cc_binary(
Austin Schuhbfb04122019-05-22 21:16:51 -070077 name = "autonomous_action",
78 srcs = [
79 "autonomous_actor_main.cc",
80 ],
81 deps = [
82 ":autonomous_action_lib",
83 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -070084 "//aos/events:shm_event_loop",
Austin Schuhbfb04122019-05-22 21:16:51 -070085 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040086)