blob: 8c1b1cdf48c9dab20618778a5a86c87158352543 [file] [log] [blame]
Austin Schuheb99d072019-05-12 21:03:38 -07001package(default_visibility = ["//visibility:public"])
Tyler Chatowf31da682017-01-22 01:39:40 +00002
Austin Schuheb99d072019-05-12 21:03:38 -07003load("//aos/build:queues.bzl", "queue_library")
Tyler Chatowf31da682017-01-22 01:39:40 +00004
5filegroup(
Austin Schuheb99d072019-05-12 21:03:38 -07006 name = "binaries",
7 srcs = [
8 ":autonomous_action",
9 ],
Tyler Chatowf31da682017-01-22 01:39:40 +000010)
11
Tyler Chatowf31da682017-01-22 01:39:40 +000012cc_library(
Austin Schuheb99d072019-05-12 21:03:38 -070013 name = "autonomous_action_lib",
14 srcs = [
15 "autonomous_actor.cc",
16 ],
17 hdrs = [
18 "autonomous_actor.h",
19 ],
20 deps = [
21 "//aos/actions:action_lib",
22 "//aos/events:event-loop",
23 "//aos/logging",
24 "//aos/util:phased_loop",
25 "//frc971/autonomous:base_autonomous_actor",
26 "//frc971/control_loops/drivetrain:drivetrain_config",
27 "//frc971/control_loops/drivetrain:drivetrain_queue",
28 "//y2017/control_loops/drivetrain:drivetrain_base",
29 "//y2017/control_loops/superstructure:superstructure_queue",
30 ],
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 ],
38 deps = [
39 ":autonomous_action_lib",
40 "//aos:init",
41 "//aos/events:shm-event-loop",
42 "//frc971/autonomous:auto_queue",
43 ],
Philipp Schrader996a2a22017-02-22 05:02:48 +000044)