James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 1 | load("//aos:config.bzl", "aos_config") |
Austin Schuh | 8f99c82 | 2024-05-05 22:43:40 -0700 | [diff] [blame] | 2 | load("//aos/flatbuffers:generate.bzl", "static_flatbuffer") |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 3 | |
Philipp Schrader | cc016b3 | 2021-12-30 08:59:58 -0800 | [diff] [blame] | 4 | package(default_visibility = ["//visibility:public"]) |
| 5 | |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 6 | cc_library( |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 7 | name = "joystick_input", |
| 8 | srcs = [ |
| 9 | "joystick_input.cc", |
| 10 | ], |
| 11 | hdrs = [ |
| 12 | "joystick_input.h", |
| 13 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 14 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 15 | deps = [ |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 16 | ":robot_state_fbs", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 17 | "//aos/events:event_loop", |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 18 | "//aos/logging", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame] | 19 | "//frc971/input:driver_station_data", |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 20 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 21 | ) |
Sabina Davis | 92d2efa | 2017-11-04 22:35:25 -0700 | [diff] [blame] | 22 | |
| 23 | cc_library( |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 24 | name = "drivetrain_input", |
| 25 | srcs = [ |
| 26 | "drivetrain_input.cc", |
| 27 | ], |
| 28 | hdrs = [ |
| 29 | "drivetrain_input.h", |
| 30 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 31 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 32 | deps = [ |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 33 | ":robot_state_fbs", |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 34 | "//aos:math", |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 35 | "//aos/logging", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 36 | "//frc971/control_loops:control_loops_fbs", |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 37 | "//frc971/control_loops/drivetrain:drivetrain_config", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 38 | "//frc971/control_loops/drivetrain:drivetrain_goal_fbs", |
| 39 | "//frc971/control_loops/drivetrain:drivetrain_status_fbs", |
James Kuszmaul | 75a18c5 | 2021-03-10 22:02:07 -0800 | [diff] [blame] | 40 | "//frc971/control_loops/drivetrain:spline_goal_fbs", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame] | 41 | "//frc971/input:driver_station_data", |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 42 | ], |
Sabina Davis | 92d2efa | 2017-11-04 22:35:25 -0700 | [diff] [blame] | 43 | ) |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 44 | |
| 45 | cc_library( |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 46 | name = "driver_station_data", |
| 47 | srcs = [ |
| 48 | "driver_station_data.cc", |
| 49 | ], |
| 50 | hdrs = [ |
| 51 | "driver_station_data.h", |
| 52 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 53 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 54 | deps = [ |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 55 | ":joystick_state_fbs", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 56 | "@com_google_absl//absl/log", |
| 57 | "@com_google_absl//absl/log:check", |
Austin Schuh | 3e45c75 | 2019-02-02 12:19:11 -0800 | [diff] [blame] | 58 | ], |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 59 | ) |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 60 | |
| 61 | cc_library( |
Ravago Jones | 8c65c43 | 2023-03-25 17:35:39 -0700 | [diff] [blame] | 62 | name = "redundant_joystick_data", |
| 63 | srcs = [ |
| 64 | "redundant_joystick_data.cc", |
| 65 | ], |
| 66 | hdrs = [ |
| 67 | "redundant_joystick_data.h", |
| 68 | ], |
| 69 | target_compatible_with = ["@platforms//os:linux"], |
| 70 | deps = [ |
| 71 | ":driver_station_data", |
| 72 | "//aos/events:event_loop", |
| 73 | ], |
| 74 | ) |
| 75 | |
| 76 | cc_library( |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 77 | name = "action_joystick_input", |
| 78 | srcs = ["action_joystick_input.cc"], |
| 79 | hdrs = ["action_joystick_input.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 80 | target_compatible_with = ["@platforms//os:linux"], |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 81 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 82 | ":drivetrain_input", |
Ravago Jones | 8c65c43 | 2023-03-25 17:35:39 -0700 | [diff] [blame] | 83 | ":redundant_joystick_data", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 84 | "//aos:init", |
| 85 | "//aos/actions:action_lib", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 86 | "//aos/logging", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 87 | "//frc971/autonomous:auto_fbs", |
Austin Schuh | ed5b26d | 2019-12-05 20:51:59 -0800 | [diff] [blame] | 88 | "//frc971/autonomous:auto_mode_fbs", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 89 | "//frc971/autonomous:base_autonomous_actor", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame] | 90 | "//frc971/input:joystick_input", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 91 | ], |
| 92 | ) |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 93 | |
James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 94 | static_flatbuffer( |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 95 | name = "robot_state_fbs", |
| 96 | srcs = ["robot_state.fbs"], |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 97 | target_compatible_with = ["@platforms//os:linux"], |
| 98 | ) |
| 99 | |
James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 100 | static_flatbuffer( |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 101 | name = "joystick_state_fbs", |
| 102 | srcs = ["joystick_state.fbs"], |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 103 | target_compatible_with = ["@platforms//os:linux"], |
| 104 | ) |
| 105 | |
| 106 | aos_config( |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 107 | name = "aos_config", |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 108 | src = "robot_state_config.json", |
| 109 | flatbuffers = [ |
| 110 | ":joystick_state_fbs", |
| 111 | ":robot_state_fbs", |
| 112 | ], |
| 113 | target_compatible_with = ["@platforms//os:linux"], |
| 114 | visibility = ["//visibility:public"], |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 115 | deps = ["//aos/events:aos_config"], |
James Kuszmaul | 7077d34 | 2021-06-09 20:23:58 -0700 | [diff] [blame] | 116 | ) |