Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 1 | load("//frc971/downloader:downloader.bzl", "aos_downloader_dir") |
| 2 | |
| 3 | filegroup( |
| 4 | name = "binaries.stripped", |
| 5 | srcs = [ |
| 6 | ":autonomous_action.stripped", |
| 7 | ], |
| 8 | visibility = ["//visibility:public"], |
| 9 | ) |
| 10 | |
| 11 | filegroup( |
| 12 | name = "binaries", |
| 13 | srcs = [ |
| 14 | ":autonomous_action", |
| 15 | ], |
| 16 | visibility = ["//visibility:public"], |
| 17 | ) |
| 18 | |
| 19 | filegroup( |
| 20 | name = "spline_jsons", |
| 21 | srcs = glob([ |
| 22 | "splines/*.json", |
| 23 | ]), |
| 24 | visibility = ["//visibility:public"], |
| 25 | ) |
| 26 | |
| 27 | aos_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 | |
| 37 | cc_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 Henderson | 12b07b9 | 2024-01-08 20:17:25 -0800 | [diff] [blame] | 51 | "//frc971/autonomous:user_button_localized_autonomous_actor", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 52 | "//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 Henderson | 64f3745 | 2023-03-11 13:39:21 -0800 | [diff] [blame] | 56 | "//y2023:constants", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 57 | "//y2023/control_loops/drivetrain:drivetrain_base", |
| 58 | "//y2023/control_loops/superstructure:superstructure_goal_fbs", |
| 59 | "//y2023/control_loops/superstructure:superstructure_status_fbs", |
Maxwell Henderson | 64f3745 | 2023-03-11 13:39:21 -0800 | [diff] [blame] | 60 | "//y2023/control_loops/superstructure/arm:generated_graph", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 61 | ], |
| 62 | ) |
| 63 | |
| 64 | cc_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 | ) |