blob: 3b3e0a2ab7c7644222f47e58b07037f759e3fa0b [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 ],
18 deps = [
19 "//aos/actions:action_lib",
Alex Perrycb7da4b2019-08-28 19:35:56 -070020 "//aos/events:event_loop",
Austin Schuheb99d072019-05-12 21:03:38 -070021 "//aos/logging",
22 "//aos/util:phased_loop",
23 "//frc971/autonomous:base_autonomous_actor",
Alex Perrycb7da4b2019-08-28 19:35:56 -070024 "//frc971/control_loops:profiled_subsystem_fbs",
Austin Schuheb99d072019-05-12 21:03:38 -070025 "//frc971/control_loops/drivetrain:drivetrain_config",
Austin Schuheb99d072019-05-12 21:03:38 -070026 "//y2017/control_loops/drivetrain:drivetrain_base",
Alex Perrycb7da4b2019-08-28 19:35:56 -070027 "//y2017/control_loops/superstructure:superstructure_goal_fbs",
28 "//y2017/control_loops/superstructure:superstructure_status_fbs",
Austin Schuheb99d072019-05-12 21:03:38 -070029 ],
Tyler Chatowf31da682017-01-22 01:39:40 +000030)
31
32cc_binary(
Austin Schuheb99d072019-05-12 21:03:38 -070033 name = "autonomous_action",
34 srcs = [
35 "autonomous_actor_main.cc",
36 ],
37 deps = [
38 ":autonomous_action_lib",
39 "//aos:init",
Alex Perrycb7da4b2019-08-28 19:35:56 -070040 "//aos/events:shm_event_loop",
Austin Schuheb99d072019-05-12 21:03:38 -070041 ],
Philipp Schrader996a2a22017-02-22 05:02:48 +000042)