Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 1 | load("//frc971:downloader.bzl", "robot_downloader") |
| 2 | load("//aos:config.bzl", "aos_config") |
| 3 | load("//tools/build_rules:template.bzl", "jinja2_template") |
Austin Schuh | bb4c9ac | 2023-02-28 22:04:20 -0800 | [diff] [blame] | 4 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library") |
milind-u | c6e437a | 2023-03-01 23:40:40 -0800 | [diff] [blame] | 5 | load("//aos/util:config_validator_macro.bzl", "config_validator_rule") |
| 6 | |
| 7 | config_validator_rule( |
| 8 | name = "config_validator_test", |
| 9 | config = "//y2023:aos_config", |
| 10 | ) |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 11 | |
| 12 | robot_downloader( |
Ravago Jones | 2060ee6 | 2023-02-03 18:12:24 -0800 | [diff] [blame] | 13 | binaries = [ |
| 14 | "//aos/network:web_proxy_main", |
| 15 | "//aos/events/logging:log_cat", |
James Kuszmaul | e22680a | 2023-02-26 17:33:43 -0800 | [diff] [blame] | 16 | "//y2023/constants:constants_sender", |
Austin Schuh | d138e37 | 2023-02-23 21:43:53 -0800 | [diff] [blame] | 17 | "//aos/events:aos_timing_report_streamer", |
Ravago Jones | 2060ee6 | 2023-02-03 18:12:24 -0800 | [diff] [blame] | 18 | ], |
| 19 | data = [ |
| 20 | ":aos_config", |
Xander Yee | 1ad2f7b | 2023-02-21 14:46:56 -0800 | [diff] [blame] | 21 | "//aos/starter:roborio_irq_config.json", |
James Kuszmaul | e22680a | 2023-02-26 17:33:43 -0800 | [diff] [blame] | 22 | "//y2023/constants:constants.json", |
Maxwell Henderson | b392b74 | 2023-03-05 07:53:51 -0800 | [diff] [blame] | 23 | "//y2023/control_loops/superstructure/arm:arm_trajectories_generated.bfbs", |
Ravago Jones | 2060ee6 | 2023-02-03 18:12:24 -0800 | [diff] [blame] | 24 | "@ctre_phoenix_api_cpp_athena//:shared_libraries", |
| 25 | "@ctre_phoenix_cci_athena//:shared_libraries", |
| 26 | "@ctre_phoenixpro_api_cpp_athena//:shared_libraries", |
| 27 | "@ctre_phoenixpro_tools_athena//:shared_libraries", |
| 28 | ], |
| 29 | dirs = [ |
| 30 | "//y2023/www:www_files", |
James Kuszmaul | 713c5ce | 2023-03-04 18:23:24 -0800 | [diff] [blame] | 31 | "//y2023/autonomous:splines", |
Ravago Jones | 2060ee6 | 2023-02-03 18:12:24 -0800 | [diff] [blame] | 32 | ], |
| 33 | start_binaries = [ |
| 34 | "//aos/events/logging:logger_main", |
| 35 | "//aos/network:web_proxy_main", |
Xander Yee | 1ad2f7b | 2023-02-21 14:46:56 -0800 | [diff] [blame] | 36 | "//aos/starter:irq_affinity", |
James Kuszmaul | 713c5ce | 2023-03-04 18:23:24 -0800 | [diff] [blame] | 37 | "//y2023/autonomous:binaries", |
Ravago Jones | 2060ee6 | 2023-02-03 18:12:24 -0800 | [diff] [blame] | 38 | ":joystick_reader", |
| 39 | ":wpilib_interface", |
| 40 | "//aos/network:message_bridge_client", |
| 41 | "//aos/network:message_bridge_server", |
| 42 | "//y2023/control_loops/drivetrain:drivetrain", |
| 43 | "//y2023/control_loops/drivetrain:trajectory_generator", |
| 44 | "//y2023/control_loops/superstructure:superstructure", |
| 45 | ], |
| 46 | target_compatible_with = ["@platforms//os:linux"], |
| 47 | ) |
| 48 | |
| 49 | robot_downloader( |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 50 | name = "pi_download", |
| 51 | binaries = [ |
James Kuszmaul | 7e95881 | 2023-02-11 15:34:31 -0800 | [diff] [blame] | 52 | "//frc971/vision:intrinsics_calibration", |
Xander Yee | 1ad2f7b | 2023-02-21 14:46:56 -0800 | [diff] [blame] | 53 | "//aos/starter:irq_affinity", |
James Kuszmaul | 77d536c | 2023-02-11 17:30:59 -0800 | [diff] [blame] | 54 | "//aos/util:foxglove_websocket", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 55 | "//y2023/vision:viewer", |
milind-u | d4051fe | 2023-02-25 18:00:05 -0800 | [diff] [blame] | 56 | "//y2023/vision:localization_verifier", |
Maxwell Henderson | febee25 | 2023-01-28 16:53:52 -0800 | [diff] [blame] | 57 | "//y2023/vision:aprilrobotics", |
James Kuszmaul | e01ae1e | 2023-02-25 20:54:06 -0800 | [diff] [blame] | 58 | "//aos/events:aos_timing_report_streamer", |
James Kuszmaul | 04a343c | 2023-02-20 16:38:22 -0800 | [diff] [blame] | 59 | "//y2023/localizer:localizer_main", |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 60 | "//y2023/constants:constants_sender", |
James Kuszmaul | 77d536c | 2023-02-11 17:30:59 -0800 | [diff] [blame] | 61 | "//y2023/vision:foxglove_image_converter", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 62 | "//aos/network:web_proxy_main", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 63 | "//aos/events/logging:log_cat", |
Austin Schuh | b07dd5b | 2023-02-05 22:29:11 -0800 | [diff] [blame] | 64 | "//y2023/rockpi:imu_main", |
milind-u | 8e98cb9 | 2023-02-05 16:07:10 -0800 | [diff] [blame] | 65 | "//frc971/image_streamer:image_streamer", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 66 | ], |
| 67 | data = [ |
| 68 | ":aos_config", |
James Kuszmaul | 08a4d85 | 2023-02-22 16:57:54 -0800 | [diff] [blame] | 69 | "//frc971/rockpi:rockpi_config.json", |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 70 | "//y2023/constants:constants.json", |
milind-u | 8e98cb9 | 2023-02-05 16:07:10 -0800 | [diff] [blame] | 71 | "//y2023/vision:image_streamer_start", |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 72 | "//y2023/www:www_files", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 73 | ], |
| 74 | dirs = [ |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 75 | "//y2023/www:www_files", |
milind-u | 8e98cb9 | 2023-02-05 16:07:10 -0800 | [diff] [blame] | 76 | "//frc971/image_streamer/www:www_files", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 77 | ], |
| 78 | start_binaries = [ |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 79 | "//aos/network:message_bridge_client", |
| 80 | "//aos/network:message_bridge_server", |
| 81 | "//aos/network:web_proxy_main", |
Austin Schuh | 3e1d3b6 | 2023-01-08 13:52:31 -0800 | [diff] [blame] | 82 | "//aos/starter:irq_affinity", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 83 | "//y2023/vision:camera_reader", |
milind-u | a96c518 | 2023-03-10 23:31:11 -0800 | [diff] [blame] | 84 | "//y2023/vision:image_logger", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 85 | "//aos/events/logging:logger_main", |
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 86 | "//y2023/vision:game_pieces_detector", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 87 | ], |
| 88 | target_compatible_with = ["//tools/platforms/hardware:raspberry_pi"], |
| 89 | target_type = "pi", |
| 90 | ) |
| 91 | |
| 92 | aos_config( |
| 93 | name = "aos_config", |
| 94 | src = "y2023.json", |
| 95 | flatbuffers = [ |
| 96 | "//aos/network:message_bridge_client_fbs", |
| 97 | "//aos/network:message_bridge_server_fbs", |
| 98 | "//aos/network:timestamp_fbs", |
| 99 | "//frc971/input:robot_state_fbs", |
| 100 | "//frc971/vision:vision_fbs", |
Maxwell Henderson | febee25 | 2023-01-28 16:53:52 -0800 | [diff] [blame] | 101 | "//frc971/vision:target_map_fbs", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 102 | ], |
| 103 | target_compatible_with = ["@platforms//os:linux"], |
| 104 | visibility = ["//visibility:public"], |
| 105 | deps = [ |
| 106 | ":config_imu", |
| 107 | ":config_logger", |
| 108 | ":config_pi1", |
| 109 | ":config_pi2", |
| 110 | ":config_pi3", |
| 111 | ":config_pi4", |
| 112 | ":config_roborio", |
| 113 | ], |
| 114 | ) |
| 115 | |
| 116 | [ |
| 117 | aos_config( |
| 118 | name = "config_" + pi, |
| 119 | src = "y2023_" + pi + ".json", |
| 120 | flatbuffers = [ |
| 121 | "//aos/network:message_bridge_client_fbs", |
| 122 | "//aos/network:message_bridge_server_fbs", |
| 123 | "//aos/network:timestamp_fbs", |
| 124 | "//aos/network:remote_message_fbs", |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 125 | "//y2023/constants:constants_fbs", |
James Kuszmaul | e3df1ed | 2023-02-20 16:21:17 -0800 | [diff] [blame] | 126 | "//frc971/control_loops/drivetrain/localization:localizer_output_fbs", |
milind-u | 2f101fc | 2023-01-21 12:28:49 -0800 | [diff] [blame] | 127 | "//frc971/vision:calibration_fbs", |
Maxwell Henderson | febee25 | 2023-01-28 16:53:52 -0800 | [diff] [blame] | 128 | "//frc971/vision:target_map_fbs", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 129 | "//frc971/vision:vision_fbs", |
James Kuszmaul | 04a343c | 2023-02-20 16:38:22 -0800 | [diff] [blame] | 130 | "//y2023/localizer:visualization_fbs", |
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 131 | "//y2023/vision:game_pieces_fbs", |
James Kuszmaul | f3ec4db | 2023-02-12 14:18:41 -0800 | [diff] [blame] | 132 | "@com_github_foxglove_schemas//:schemas", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 133 | ], |
| 134 | target_compatible_with = ["@platforms//os:linux"], |
| 135 | visibility = ["//visibility:public"], |
| 136 | deps = [ |
| 137 | "//aos/events:aos_config", |
| 138 | "//frc971/control_loops/drivetrain:aos_config", |
| 139 | "//frc971/input:aos_config", |
| 140 | ], |
| 141 | ) |
| 142 | for pi in [ |
| 143 | "pi1", |
| 144 | "pi2", |
| 145 | "pi3", |
| 146 | "pi4", |
| 147 | ] |
| 148 | ] |
| 149 | |
| 150 | aos_config( |
| 151 | name = "config_imu", |
| 152 | src = "y2023_imu.json", |
| 153 | flatbuffers = [ |
| 154 | "//aos/network:message_bridge_client_fbs", |
| 155 | "//aos/network:message_bridge_server_fbs", |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 156 | "//y2023/constants:constants_fbs", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 157 | "//aos/network:timestamp_fbs", |
| 158 | "//aos/network:remote_message_fbs", |
James Kuszmaul | 04a343c | 2023-02-20 16:38:22 -0800 | [diff] [blame] | 159 | "//y2023/localizer:status_fbs", |
James Kuszmaul | e3df1ed | 2023-02-20 16:21:17 -0800 | [diff] [blame] | 160 | "//frc971/control_loops/drivetrain/localization:localizer_output_fbs", |
James Kuszmaul | 04a343c | 2023-02-20 16:38:22 -0800 | [diff] [blame] | 161 | "//y2023/localizer:visualization_fbs", |
Maxwell Henderson | febee25 | 2023-01-28 16:53:52 -0800 | [diff] [blame] | 162 | "//frc971/vision:target_map_fbs", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 163 | ], |
| 164 | target_compatible_with = ["@platforms//os:linux"], |
| 165 | visibility = ["//visibility:public"], |
| 166 | deps = [ |
| 167 | "//aos/events:aos_config", |
| 168 | "//frc971/control_loops/drivetrain:aos_config", |
| 169 | ], |
| 170 | ) |
| 171 | |
| 172 | aos_config( |
| 173 | name = "config_logger", |
| 174 | src = "y2023_logger.json", |
| 175 | flatbuffers = [ |
| 176 | "//aos/network:message_bridge_client_fbs", |
| 177 | "//aos/network:message_bridge_server_fbs", |
| 178 | "//aos/network:timestamp_fbs", |
| 179 | "//aos/network:remote_message_fbs", |
milind-u | 2f101fc | 2023-01-21 12:28:49 -0800 | [diff] [blame] | 180 | "//frc971/vision:calibration_fbs", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 181 | "//frc971/vision:vision_fbs", |
Maxwell Henderson | febee25 | 2023-01-28 16:53:52 -0800 | [diff] [blame] | 182 | "//frc971/vision:target_map_fbs", |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 183 | "//y2023/constants:constants_fbs", |
Filip Kujawa | 3004f20 | 2023-02-12 16:41:40 -0800 | [diff] [blame] | 184 | "//y2023/vision:game_pieces_fbs", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 185 | ], |
| 186 | target_compatible_with = ["@platforms//os:linux"], |
| 187 | visibility = ["//visibility:public"], |
| 188 | deps = [ |
| 189 | "//aos/events:aos_config", |
| 190 | "//frc971/control_loops/drivetrain:aos_config", |
| 191 | "//frc971/input:aos_config", |
| 192 | ], |
| 193 | ) |
| 194 | |
| 195 | aos_config( |
| 196 | name = "config_roborio", |
| 197 | src = "y2023_roborio.json", |
| 198 | flatbuffers = [ |
Austin Schuh | bb4c9ac | 2023-02-28 22:04:20 -0800 | [diff] [blame] | 199 | ":can_configuration_fbs", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 200 | "//aos/network:remote_message_fbs", |
| 201 | "//aos/network:message_bridge_client_fbs", |
| 202 | "//aos/network:message_bridge_server_fbs", |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 203 | "//y2023/constants:constants_fbs", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 204 | "//aos/network:timestamp_fbs", |
| 205 | "//y2019/control_loops/drivetrain:target_selector_fbs", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 206 | "//y2023/control_loops/superstructure:superstructure_goal_fbs", |
James Kuszmaul | db730d7 | 2023-02-25 16:01:27 -0800 | [diff] [blame] | 207 | "//y2023/control_loops/drivetrain:target_selector_hint_fbs", |
James Kuszmaul | 202e438 | 2023-03-05 14:56:55 -0800 | [diff] [blame] | 208 | "//y2023/control_loops/drivetrain:target_selector_status_fbs", |
Ravago Jones | 2060ee6 | 2023-02-03 18:12:24 -0800 | [diff] [blame] | 209 | "//y2023/control_loops/drivetrain:drivetrain_can_position_fbs", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 210 | "//y2023/control_loops/superstructure:superstructure_output_fbs", |
| 211 | "//y2023/control_loops/superstructure:superstructure_position_fbs", |
| 212 | "//y2023/control_loops/superstructure:superstructure_status_fbs", |
Austin Schuh | 9f164e9 | 2022-12-29 16:15:28 -0800 | [diff] [blame] | 213 | ], |
| 214 | target_compatible_with = ["@platforms//os:linux"], |
| 215 | deps = [ |
| 216 | "//aos/events:aos_config", |
| 217 | "//frc971/autonomous:aos_config", |
| 218 | "//frc971/control_loops/drivetrain:aos_config", |
| 219 | "//frc971/input:aos_config", |
| 220 | "//frc971/wpilib:aos_config", |
| 221 | ], |
| 222 | ) |
| 223 | |
| 224 | [ |
| 225 | jinja2_template( |
| 226 | name = "y2023_pi" + str(num) + ".json", |
| 227 | src = "y2023_pi_template.json", |
| 228 | parameters = {"NUM": str(num)}, |
| 229 | target_compatible_with = ["@platforms//os:linux"], |
| 230 | ) |
| 231 | for num in range(1, 6) |
| 232 | ] |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 233 | |
| 234 | cc_library( |
| 235 | name = "constants", |
| 236 | srcs = [ |
| 237 | "constants.cc", |
| 238 | ], |
| 239 | hdrs = [ |
| 240 | "constants.h", |
| 241 | ], |
| 242 | visibility = ["//visibility:public"], |
| 243 | deps = [ |
| 244 | "//aos/mutex", |
| 245 | "//aos/network:team_number", |
| 246 | "//frc971:constants", |
| 247 | "//frc971/control_loops:pose", |
| 248 | "//frc971/control_loops:static_zeroing_single_dof_profiled_subsystem", |
| 249 | "//frc971/shooter_interpolation:interpolation", |
| 250 | "//y2023/control_loops/drivetrain:polydrivetrain_plants", |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame] | 251 | "//y2023/control_loops/superstructure/arm:arm_constants", |
milind-u | 051c700 | 2023-02-20 16:28:18 -0800 | [diff] [blame] | 252 | "//y2023/control_loops/superstructure/roll:roll_plants", |
| 253 | "//y2023/control_loops/superstructure/wrist:wrist_plants", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 254 | "@com_github_google_glog//:glog", |
| 255 | "@com_google_absl//absl/base", |
| 256 | ], |
| 257 | ) |
| 258 | |
| 259 | cc_binary( |
| 260 | name = "wpilib_interface", |
| 261 | srcs = [ |
| 262 | "wpilib_interface.cc", |
| 263 | ], |
| 264 | target_compatible_with = ["//tools/platforms/hardware:roborio"], |
| 265 | deps = [ |
Austin Schuh | bb4c9ac | 2023-02-28 22:04:20 -0800 | [diff] [blame] | 266 | ":can_configuration_fbs", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 267 | ":constants", |
| 268 | "//aos:init", |
| 269 | "//aos:math", |
Ravago Jones | 2060ee6 | 2023-02-03 18:12:24 -0800 | [diff] [blame] | 270 | "//aos/containers:sized_array", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 271 | "//aos/events:shm_event_loop", |
| 272 | "//aos/logging", |
| 273 | "//aos/stl_mutex", |
| 274 | "//aos/time", |
| 275 | "//aos/util:log_interval", |
| 276 | "//aos/util:phased_loop", |
| 277 | "//aos/util:wrapping_counter", |
| 278 | "//frc971/autonomous:auto_mode_fbs", |
| 279 | "//frc971/control_loops:control_loop", |
| 280 | "//frc971/control_loops:control_loops_fbs", |
| 281 | "//frc971/control_loops/drivetrain:drivetrain_position_fbs", |
| 282 | "//frc971/input:robot_state_fbs", |
| 283 | "//frc971/queues:gyro_fbs", |
| 284 | "//frc971/wpilib:ADIS16448", |
| 285 | "//frc971/wpilib:buffered_pcm", |
| 286 | "//frc971/wpilib:drivetrain_writer", |
| 287 | "//frc971/wpilib:encoder_and_potentiometer", |
| 288 | "//frc971/wpilib:interrupt_edge_counting", |
| 289 | "//frc971/wpilib:joystick_sender", |
| 290 | "//frc971/wpilib:logging_fbs", |
| 291 | "//frc971/wpilib:loop_output_handler", |
| 292 | "//frc971/wpilib:pdp_fetcher", |
| 293 | "//frc971/wpilib:sensor_reader", |
| 294 | "//frc971/wpilib:wpilib_interface", |
| 295 | "//frc971/wpilib:wpilib_robot_base", |
| 296 | "//third_party:phoenix", |
Ravago Jones | 2060ee6 | 2023-02-03 18:12:24 -0800 | [diff] [blame] | 297 | "//third_party:phoenixpro", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 298 | "//third_party:wpilib", |
Ravago Jones | 2060ee6 | 2023-02-03 18:12:24 -0800 | [diff] [blame] | 299 | "//y2023/control_loops/drivetrain:drivetrain_can_position_fbs", |
Maxwell Henderson | 2a2faa6 | 2023-03-11 15:05:46 -0800 | [diff] [blame^] | 300 | "//y2023/control_loops/superstructure:led_indicator_lib", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 301 | "//y2023/control_loops/superstructure:superstructure_output_fbs", |
| 302 | "//y2023/control_loops/superstructure:superstructure_position_fbs", |
| 303 | ], |
| 304 | ) |
| 305 | |
| 306 | cc_binary( |
| 307 | name = "joystick_reader", |
| 308 | srcs = [ |
| 309 | ":joystick_reader.cc", |
| 310 | ], |
| 311 | deps = [ |
| 312 | ":constants", |
| 313 | "//aos:init", |
| 314 | "//aos/actions:action_lib", |
| 315 | "//aos/logging", |
| 316 | "//frc971/autonomous:auto_fbs", |
| 317 | "//frc971/autonomous:base_autonomous_actor", |
| 318 | "//frc971/control_loops:profiled_subsystem_fbs", |
| 319 | "//frc971/input:action_joystick_input", |
| 320 | "//frc971/input:drivetrain_input", |
| 321 | "//frc971/input:joystick_input", |
| 322 | "//y2023/control_loops/drivetrain:drivetrain_base", |
James Kuszmaul | 4e17143 | 2023-02-26 13:39:37 -0800 | [diff] [blame] | 323 | "//y2023/control_loops/drivetrain:target_selector_hint_fbs", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 324 | "//y2023/control_loops/superstructure:superstructure_goal_fbs", |
| 325 | "//y2023/control_loops/superstructure:superstructure_status_fbs", |
milind-u | defab71 | 2023-02-20 22:22:02 -0800 | [diff] [blame] | 326 | "//y2023/control_loops/superstructure/arm:generated_graph", |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 327 | ], |
| 328 | ) |
| 329 | |
| 330 | py_library( |
| 331 | name = "python_init", |
| 332 | srcs = ["__init__.py"], |
| 333 | target_compatible_with = ["@platforms//os:linux"], |
| 334 | visibility = ["//visibility:public"], |
| 335 | ) |
| 336 | |
| 337 | sh_binary( |
| 338 | name = "log_web_proxy", |
| 339 | srcs = ["log_web_proxy.sh"], |
| 340 | data = [ |
| 341 | ":aos_config", |
| 342 | "//aos/network:log_web_proxy_main", |
| 343 | "//y2023/www:field_main_bundle.min.js", |
| 344 | "//y2023/www:files", |
| 345 | ], |
| 346 | target_compatible_with = ["@platforms//os:linux"], |
| 347 | ) |
Austin Schuh | e6b2b88 | 2023-02-04 11:42:40 -0800 | [diff] [blame] | 348 | |
| 349 | cc_binary( |
| 350 | name = "ssd_profiler", |
| 351 | srcs = [ |
| 352 | "ssd_profiler.cc", |
| 353 | ], |
| 354 | deps = [ |
| 355 | "//aos:init", |
| 356 | "//aos/time", |
| 357 | "@com_github_google_glog//:glog", |
| 358 | ], |
| 359 | ) |
Austin Schuh | bb4c9ac | 2023-02-28 22:04:20 -0800 | [diff] [blame] | 360 | |
| 361 | flatbuffer_cc_library( |
| 362 | name = "can_configuration_fbs", |
| 363 | srcs = [ |
| 364 | ":can_configuration.fbs", |
| 365 | ], |
| 366 | gen_reflections = 1, |
| 367 | visibility = ["//visibility:public"], |
| 368 | ) |