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