Austin Schuh | ed5b26d | 2019-12-05 20:51:59 -0800 | [diff] [blame] | 1 | load("//aos:config.bzl", "aos_config") |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 2 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library") |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 3 | |
Philipp Schrader | cc016b3 | 2021-12-30 08:59:58 -0800 | [diff] [blame] | 4 | package(default_visibility = ["//visibility:public"]) |
| 5 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 6 | flatbuffer_cc_library( |
| 7 | name = "auto_fbs", |
| 8 | srcs = ["auto.fbs"], |
Austin Schuh | ed5b26d | 2019-12-05 20:51:59 -0800 | [diff] [blame] | 9 | gen_reflections = 1, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 10 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | ed5b26d | 2019-12-05 20:51:59 -0800 | [diff] [blame] | 11 | visibility = ["//visibility:public"], |
| 12 | ) |
| 13 | |
| 14 | flatbuffer_cc_library( |
| 15 | name = "auto_mode_fbs", |
| 16 | srcs = ["auto_mode.fbs"], |
| 17 | gen_reflections = 1, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 18 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 19 | visibility = ["//visibility:public"], |
Philipp Schrader | 4bd29b1 | 2017-02-22 04:42:27 +0000 | [diff] [blame] | 20 | ) |
| 21 | |
| 22 | cc_library( |
James Kuszmaul | 8bb5df2 | 2019-05-01 21:40:08 -0500 | [diff] [blame] | 23 | name = "base_autonomous_actor", |
| 24 | srcs = [ |
| 25 | "base_autonomous_actor.cc", |
| 26 | ], |
| 27 | hdrs = [ |
| 28 | "base_autonomous_actor.h", |
| 29 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 30 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | 8bb5df2 | 2019-05-01 21:40:08 -0500 | [diff] [blame] | 31 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 32 | ":auto_fbs", |
James Kuszmaul | 8bb5df2 | 2019-05-01 21:40:08 -0500 | [diff] [blame] | 33 | "//aos/actions:action_lib", |
| 34 | "//aos/logging", |
James Kuszmaul | 99af8b5 | 2021-03-28 10:50:15 -0700 | [diff] [blame] | 35 | "//aos/util:math", |
James Kuszmaul | 8bb5df2 | 2019-05-01 21:40:08 -0500 | [diff] [blame] | 36 | "//aos/util:phased_loop", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 37 | "//frc971/control_loops:control_loops_fbs", |
James Kuszmaul | 8bb5df2 | 2019-05-01 21:40:08 -0500 | [diff] [blame] | 38 | "//frc971/control_loops/drivetrain:drivetrain_config", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 39 | "//frc971/control_loops/drivetrain:drivetrain_goal_fbs", |
| 40 | "//frc971/control_loops/drivetrain:drivetrain_status_fbs", |
| 41 | "//frc971/control_loops/drivetrain:localizer_fbs", |
James Kuszmaul | 99af8b5 | 2021-03-28 10:50:15 -0700 | [diff] [blame] | 42 | "//frc971/control_loops/drivetrain:spline", |
James Kuszmaul | 75a18c5 | 2021-03-10 22:02:07 -0800 | [diff] [blame] | 43 | "//frc971/control_loops/drivetrain:spline_goal_fbs", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 44 | "//y2019/control_loops/drivetrain:target_selector_fbs", |
James Kuszmaul | 8bb5df2 | 2019-05-01 21:40:08 -0500 | [diff] [blame] | 45 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 46 | ) |
Austin Schuh | ed5b26d | 2019-12-05 20:51:59 -0800 | [diff] [blame] | 47 | |
| 48 | aos_config( |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 49 | name = "aos_config", |
Austin Schuh | ed5b26d | 2019-12-05 20:51:59 -0800 | [diff] [blame] | 50 | src = "autonomous_config.json", |
| 51 | flatbuffers = [ |
| 52 | "//aos/actions:actions_fbs", |
| 53 | ":auto_fbs", |
| 54 | ":auto_mode_fbs", |
| 55 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 56 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | ed5b26d | 2019-12-05 20:51:59 -0800 | [diff] [blame] | 57 | visibility = ["//visibility:public"], |
| 58 | ) |