blob: 3f2066f56d33add739553dfd0e93f09f73821337 [file] [log] [blame]
Maxwell Hendersonad312342023-01-10 12:07:47 -08001load("//frc971/downloader:downloader.bzl", "aos_downloader_dir")
2
3filegroup(
4 name = "binaries.stripped",
5 srcs = [
6 ":autonomous_action.stripped",
7 ],
8 visibility = ["//visibility:public"],
9)
10
11filegroup(
12 name = "binaries",
13 srcs = [
14 ":autonomous_action",
15 ],
16 visibility = ["//visibility:public"],
17)
18
19filegroup(
20 name = "spline_jsons",
21 srcs = glob([
22 "splines/*.json",
23 ]),
24 visibility = ["//visibility:public"],
25)
26
27aos_downloader_dir(
28 name = "splines",
29 srcs = [
30 ":spline_jsons",
31 ],
32 dir = "splines",
33 target_compatible_with = ["@platforms//os:linux"],
34 visibility = ["//visibility:public"],
35)
36
37cc_library(
38 name = "autonomous_action_lib",
39 srcs = [
40 "auto_splines.cc",
41 "autonomous_actor.cc",
42 ],
43 hdrs = [
44 "auto_splines.h",
45 "autonomous_actor.h",
46 ],
47 deps = [
48 "//aos/events:event_loop",
49 "//aos/logging",
50 "//aos/util:phased_loop",
Maxwell Henderson12b07b92024-01-08 20:17:25 -080051 "//frc971/autonomous:user_button_localized_autonomous_actor",
Maxwell Hendersonad312342023-01-10 12:07:47 -080052 "//frc971/control_loops:control_loops_fbs",
53 "//frc971/control_loops:profiled_subsystem_fbs",
54 "//frc971/control_loops/drivetrain:drivetrain_config",
55 "//frc971/control_loops/drivetrain:localizer_fbs",
Maxwell Henderson64f37452023-03-11 13:39:21 -080056 "//y2023:constants",
Maxwell Hendersonad312342023-01-10 12:07:47 -080057 "//y2023/control_loops/drivetrain:drivetrain_base",
58 "//y2023/control_loops/superstructure:superstructure_goal_fbs",
59 "//y2023/control_loops/superstructure:superstructure_status_fbs",
Maxwell Henderson64f37452023-03-11 13:39:21 -080060 "//y2023/control_loops/superstructure/arm:generated_graph",
Maxwell Hendersonad312342023-01-10 12:07:47 -080061 ],
62)
63
64cc_binary(
65 name = "autonomous_action",
66 srcs = [
67 "autonomous_actor_main.cc",
68 ],
69 deps = [
70 ":autonomous_action_lib",
71 "//aos:init",
72 "//aos/events:shm_event_loop",
73 "//frc971/autonomous:auto_fbs",
74 ],
75)