blob: ab27aac6c48205ef5c316a2d406cde12ced0f394 [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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080027 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhbfb04122019-05-22 21:16:51 -070028 visibility = ["//visibility:public"],
29 deps = [
Austin Schuhbfb04122019-05-22 21:16:51 -070030 "//aos/actions:action_lib",
31 "//aos/logging",
Austin Schuhbfb04122019-05-22 21:16:51 -070032 "//y2014:constants",
Alex Perrycb7da4b2019-08-28 19:35:56 -070033 "//y2014/control_loops/claw:claw_goal_fbs",
34 "//y2014/control_loops/claw:claw_status_fbs",
35 "//y2014/control_loops/shooter:shooter_goal_fbs",
36 "//y2014/control_loops/shooter:shooter_status_fbs",
Austin Schuhbfb04122019-05-22 21:16:51 -070037 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040038)
39
40cc_binary(
Austin Schuhbfb04122019-05-22 21:16:51 -070041 name = "shoot_action",
42 srcs = [
43 "shoot_actor_main.cc",
44 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080045 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhbfb04122019-05-22 21:16:51 -070046 deps = [
47 ":shoot_action_lib",
Austin Schuhbfb04122019-05-22 21:16:51 -070048 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -070049 "//aos/events:shm_event_loop",
Austin Schuhbfb04122019-05-22 21:16:51 -070050 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040051)
52
53cc_library(
Austin Schuhbfb04122019-05-22 21:16:51 -070054 name = "autonomous_action_lib",
55 srcs = [
56 "autonomous_actor.cc",
57 ],
58 hdrs = [
59 "autonomous_actor.h",
60 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080061 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhbfb04122019-05-22 21:16:51 -070062 deps = [
63 "//aos/actions:action_lib",
Alex Perrycb7da4b2019-08-28 19:35:56 -070064 "//aos/events:event_loop",
Austin Schuhbfb04122019-05-22 21:16:51 -070065 "//aos/logging",
66 "//aos/util:phased_loop",
67 "//frc971/autonomous:base_autonomous_actor",
68 "//frc971/control_loops/drivetrain:drivetrain_config",
Austin Schuhbfb04122019-05-22 21:16:51 -070069 "//y2014/actors:shoot_action_lib",
Alex Perrycb7da4b2019-08-28 19:35:56 -070070 "//y2014/control_loops/claw:claw_goal_fbs",
71 "//y2014/control_loops/claw:claw_status_fbs",
Austin Schuhbfb04122019-05-22 21:16:51 -070072 "//y2014/control_loops/drivetrain:drivetrain_base",
Alex Perrycb7da4b2019-08-28 19:35:56 -070073 "//y2014/control_loops/shooter:shooter_goal_fbs",
74 "//y2014/queues:auto_mode_fbs",
75 "//y2014/queues:hot_goal_fbs",
Austin Schuhbfb04122019-05-22 21:16:51 -070076 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040077)
78
79cc_binary(
Austin Schuhbfb04122019-05-22 21:16:51 -070080 name = "autonomous_action",
81 srcs = [
82 "autonomous_actor_main.cc",
83 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080084 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhbfb04122019-05-22 21:16:51 -070085 deps = [
86 ":autonomous_action_lib",
87 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -070088 "//aos/events:shm_event_loop",
Austin Schuhbfb04122019-05-22 21:16:51 -070089 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040090)