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