blob: de1c59407a4a7d88149cb4219b5774fd6171c7fc [file] [log] [blame]
Austin Schuheb99d072019-05-12 21:03:38 -07001package(default_visibility = ["//visibility:public"])
Tyler Chatowf31da682017-01-22 01:39:40 +00002
Tyler Chatowf31da682017-01-22 01:39:40 +00003filegroup(
Austin Schuheb99d072019-05-12 21:03:38 -07004 name = "binaries",
5 srcs = [
6 ":autonomous_action",
7 ],
Tyler Chatowf31da682017-01-22 01:39:40 +00008)
9
Tyler Chatowf31da682017-01-22 01:39:40 +000010cc_library(
Austin Schuheb99d072019-05-12 21:03:38 -070011 name = "autonomous_action_lib",
12 srcs = [
13 "autonomous_actor.cc",
14 ],
15 hdrs = [
16 "autonomous_actor.h",
17 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080018 target_compatible_with = ["@platforms//os:linux"],
Austin Schuheb99d072019-05-12 21:03:38 -070019 deps = [
20 "//aos/actions:action_lib",
Alex Perrycb7da4b2019-08-28 19:35:56 -070021 "//aos/events:event_loop",
Austin Schuheb99d072019-05-12 21:03:38 -070022 "//aos/logging",
23 "//aos/util:phased_loop",
24 "//frc971/autonomous:base_autonomous_actor",
Alex Perrycb7da4b2019-08-28 19:35:56 -070025 "//frc971/control_loops:profiled_subsystem_fbs",
Austin Schuheb99d072019-05-12 21:03:38 -070026 "//frc971/control_loops/drivetrain:drivetrain_config",
Austin Schuheb99d072019-05-12 21:03:38 -070027 "//y2017/control_loops/drivetrain:drivetrain_base",
Alex Perrycb7da4b2019-08-28 19:35:56 -070028 "//y2017/control_loops/superstructure:superstructure_goal_fbs",
29 "//y2017/control_loops/superstructure:superstructure_status_fbs",
Austin Schuheb99d072019-05-12 21:03:38 -070030 ],
Tyler Chatowf31da682017-01-22 01:39:40 +000031)
32
33cc_binary(
Austin Schuheb99d072019-05-12 21:03:38 -070034 name = "autonomous_action",
35 srcs = [
36 "autonomous_actor_main.cc",
37 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080038 target_compatible_with = ["@platforms//os:linux"],
Austin Schuheb99d072019-05-12 21:03:38 -070039 deps = [
40 ":autonomous_action_lib",
41 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -070042 "//aos/events:shm_event_loop",
Austin Schuheb99d072019-05-12 21:03:38 -070043 ],
Philipp Schrader996a2a22017-02-22 05:02:48 +000044)