blob: 85d8882dd2eddbbdb33d6a41ab04c0ab374b5280 [file] [log] [blame]
Ravago Jonesc2a08022021-02-06 17:40:54 -08001load("//frc971/downloader:downloader.bzl", "aos_downloader_dir")
2
Stephan Massaltd021f972020-01-05 20:41:23 -08003filegroup(
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
Ravago Jonesc2a08022021-02-06 17:40:54 -080019filegroup(
20 name = "spline_jsons",
21 srcs = glob([
Austin Schuhc61e9c02021-04-26 12:10:40 -070022 "splines/*.json",
23 ]),
Ravago Jonesc2a08022021-02-06 17:40:54 -080024 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
Stephan Massaltd021f972020-01-05 20:41:23 -080037cc_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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080047 target_compatible_with = ["@platforms//os:linux"],
Stephan Massaltd021f972020-01-05 20:41:23 -080048 deps = [
49 "//aos/events:event_loop",
50 "//aos/logging",
James Kuszmaulddd2ba62020-03-08 22:17:13 -070051 "//aos/util:math",
Stephan Massaltd021f972020-01-05 20:41:23 -080052 "//aos/util:phased_loop",
53 "//frc971/autonomous:base_autonomous_actor",
54 "//frc971/control_loops:control_loops_fbs",
55 "//frc971/control_loops:profiled_subsystem_fbs",
56 "//frc971/control_loops/drivetrain:drivetrain_config",
57 "//frc971/control_loops/drivetrain:localizer_fbs",
Austin Schuhc61e9c02021-04-26 12:10:40 -070058 "//frc971/control_loops/drivetrain:spline",
Austin Schuh0a3c9d42021-07-15 22:36:24 -070059 "//frc971/input:joystick_state_fbs",
Stephan Massaltd021f972020-01-05 20:41:23 -080060 "//y2020/control_loops/drivetrain:drivetrain_base",
61 "//y2020/control_loops/superstructure:superstructure_goal_fbs",
62 "//y2020/control_loops/superstructure:superstructure_status_fbs",
kyle96c406e2021-02-27 14:07:22 -080063 "//y2020/vision:galactic_search_path_fbs",
Stephan Massaltd021f972020-01-05 20:41:23 -080064 ],
65)
66
67cc_binary(
68 name = "autonomous_action",
69 srcs = [
70 "autonomous_actor_main.cc",
71 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080072 target_compatible_with = ["@platforms//os:linux"],
Stephan Massaltd021f972020-01-05 20:41:23 -080073 deps = [
74 ":autonomous_action_lib",
75 "//aos:init",
76 "//aos/events:shm_event_loop",
77 "//frc971/autonomous:auto_fbs",
milind-uba4f09a2021-10-11 17:51:22 -070078 "//y2020:constants",
Stephan Massaltd021f972020-01-05 20:41:23 -080079 ],
80)
milind-u661a1182021-09-21 20:30:43 -070081
82cc_binary(
83 name = "shooter_tuning_action",
84 srcs = [
85 "shooter_tuning_actor.cc",
86 ],
87 target_compatible_with = ["@platforms//os:linux"],
88 deps = [
milind-u661a1182021-09-21 20:30:43 -070089 "//aos:init",
Philipp Schrader37fdbb62021-12-18 00:30:37 -080090 "//aos/events:shm_event_loop",
milind-u661a1182021-09-21 20:30:43 -070091 "//frc971/autonomous:base_autonomous_actor",
92 "//frc971/control_loops:control_loops_fbs",
93 "//frc971/control_loops:profiled_subsystem_fbs",
milind-uba4f09a2021-10-11 17:51:22 -070094 "//y2020:constants",
milind-u661a1182021-09-21 20:30:43 -070095 "//y2020/control_loops/drivetrain:drivetrain_base",
Philipp Schrader37fdbb62021-12-18 00:30:37 -080096 "//y2020/control_loops/superstructure:superstructure_goal_fbs",
milind-u661a1182021-09-21 20:30:43 -070097 "//y2020/control_loops/superstructure/shooter:shooter_tuning_params_fbs",
98 "//y2020/control_loops/superstructure/shooter:shooter_tuning_readings_fbs",
milind-u661a1182021-09-21 20:30:43 -070099 ],
100)