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