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