milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [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 | e50ef1e | 2023-05-16 21:08:04 -0700 | [diff] [blame] | 3 | load("//aos/util:config_validator_macro.bzl", "config_validator_test") |
Austin Schuh | 8f99c82 | 2024-05-05 22:43:40 -0700 | [diff] [blame] | 4 | load("//frc971:downloader.bzl", "robot_downloader") |
| 5 | load("//tools/build_rules:template.bzl", "jinja2_template") |
James Kuszmaul | e50ef1e | 2023-05-16 21:08:04 -0700 | [diff] [blame] | 6 | |
| 7 | config_validator_test( |
| 8 | name = "config_validator_test", |
| 9 | config = "//y2022:aos_config", |
| 10 | ) |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 11 | |
| 12 | robot_downloader( |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 13 | binaries = [ |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 14 | ":setpoint_setter", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 15 | "//aos/network:web_proxy_main", |
Austin Schuh | 3d3707a | 2022-04-02 22:39:50 -0700 | [diff] [blame] | 16 | "//aos/events/logging:log_cat", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 17 | ], |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 18 | data = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 19 | ":aos_config", |
Austin Schuh | 6b2edc6 | 2022-03-27 13:32:09 -0700 | [diff] [blame] | 20 | ":message_bridge_client.sh", |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 21 | "@ctre_phoenix6_api_cpp_athena//:shared_libraries", |
| 22 | "@ctre_phoenix6_tools_athena//:shared_libraries", |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 23 | "@ctre_phoenix_api_cpp_athena//:shared_libraries", |
| 24 | "@ctre_phoenix_cci_athena//:shared_libraries", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 25 | ], |
Austin Schuh | 76f227c | 2022-02-23 16:34:08 -0800 | [diff] [blame] | 26 | dirs = [ |
Ravago Jones | 81e5063 | 2022-03-11 16:23:51 -0800 | [diff] [blame] | 27 | "//y2022/actors:splines", |
Austin Schuh | 76f227c | 2022-02-23 16:34:08 -0800 | [diff] [blame] | 28 | "//y2022/www:www_files", |
| 29 | ], |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 30 | start_binaries = [ |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 31 | "//aos/events/logging:logger_main", |
| 32 | "//aos/network:web_proxy_main", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 33 | ":joystick_reader", |
| 34 | ":wpilib_interface", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 35 | "//aos/network:message_bridge_client", |
| 36 | "//aos/network:message_bridge_server", |
| 37 | "//y2022/actors:binaries", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 38 | "//y2022/control_loops/drivetrain:drivetrain", |
Milind Upadhyay | b8abf02 | 2022-02-22 21:07:44 -0800 | [diff] [blame] | 39 | "//y2022/control_loops/drivetrain:trajectory_generator", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 40 | "//y2022/control_loops/superstructure:superstructure", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 41 | ], |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 42 | target_compatible_with = ["@platforms//os:linux"], |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 43 | ) |
| 44 | |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 45 | robot_downloader( |
| 46 | name = "pi_download", |
| 47 | binaries = [ |
James Kuszmaul | 7e95881 | 2023-02-11 15:34:31 -0800 | [diff] [blame] | 48 | "//frc971/vision:intrinsics_calibration", |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 49 | "//y2022/vision:viewer", |
Ravago Jones | e12b790 | 2022-02-04 22:50:44 -0800 | [diff] [blame] | 50 | "//y2022/localizer:imu_main", |
James Kuszmaul | 51fa1ae | 2022-02-26 00:49:57 -0800 | [diff] [blame] | 51 | "//y2022/localizer:localizer_main", |
James Kuszmaul | 3eb753d | 2022-03-12 15:21:12 -0800 | [diff] [blame] | 52 | "//y2022/vision:image_decimator", |
milind-u | b0773e9 | 2023-02-05 15:57:43 -0800 | [diff] [blame] | 53 | "//frc971/image_streamer:image_streamer", |
Austin Schuh | 63f6516 | 2022-04-01 22:31:19 -0700 | [diff] [blame] | 54 | "//aos/events/logging:log_cat", |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 55 | ], |
| 56 | data = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 57 | ":aos_config", |
Austin Schuh | 3755916 | 2022-11-09 09:45:15 -0800 | [diff] [blame] | 58 | ":message_bridge_client.sh", |
milind-u | b0773e9 | 2023-02-05 15:57:43 -0800 | [diff] [blame] | 59 | "//y2022/vision:image_streamer_start", |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 60 | ], |
James Kuszmaul | b35e234 | 2022-03-06 15:44:00 -0800 | [diff] [blame] | 61 | dirs = [ |
| 62 | "//y2022/www:www_files", |
milind-u | b0773e9 | 2023-02-05 15:57:43 -0800 | [diff] [blame] | 63 | "//frc971/image_streamer/www:www_files", |
James Kuszmaul | b35e234 | 2022-03-06 15:44:00 -0800 | [diff] [blame] | 64 | ], |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 65 | start_binaries = [ |
| 66 | "//aos/events/logging:logger_main", |
| 67 | "//aos/network:message_bridge_client", |
| 68 | "//aos/network:message_bridge_server", |
| 69 | "//aos/network:web_proxy_main", |
| 70 | "//y2022/vision:camera_reader", |
Ravago Jones | 32bd3cb | 2022-03-26 15:45:03 -0700 | [diff] [blame] | 71 | "//y2022/vision:ball_color_detector", |
milind-u | 6b6e100 | 2022-01-22 13:26:42 -0800 | [diff] [blame] | 72 | ], |
| 73 | target_compatible_with = ["//tools/platforms/hardware:raspberry_pi"], |
| 74 | target_type = "pi", |
| 75 | ) |
| 76 | |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 77 | aos_config( |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 78 | name = "aos_config", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 79 | src = "y2022.json", |
| 80 | flatbuffers = [ |
| 81 | "//aos/network:message_bridge_client_fbs", |
| 82 | "//aos/network:message_bridge_server_fbs", |
| 83 | "//aos/network:timestamp_fbs", |
| 84 | "//frc971/input:robot_state_fbs", |
| 85 | "//frc971/vision:vision_fbs", |
milind-u | 2f101fc | 2023-01-21 12:28:49 -0800 | [diff] [blame] | 86 | "//frc971/vision:calibration_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 87 | ], |
| 88 | target_compatible_with = ["@platforms//os:linux"], |
| 89 | visibility = ["//visibility:public"], |
| 90 | deps = [ |
James Kuszmaul | ef35d73 | 2022-02-12 16:37:32 -0800 | [diff] [blame] | 91 | ":config_imu", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 92 | ":config_logger", |
| 93 | ":config_pi1", |
| 94 | ":config_pi2", |
| 95 | ":config_pi3", |
| 96 | ":config_pi4", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 97 | ":config_roborio", |
| 98 | ], |
| 99 | ) |
| 100 | |
| 101 | [ |
| 102 | aos_config( |
| 103 | name = "config_" + pi, |
| 104 | src = "y2022_" + pi + ".json", |
| 105 | flatbuffers = [ |
| 106 | "//aos/network:message_bridge_client_fbs", |
| 107 | "//aos/network:message_bridge_server_fbs", |
| 108 | "//aos/network:timestamp_fbs", |
| 109 | "//aos/network:remote_message_fbs", |
| 110 | "//frc971/vision:vision_fbs", |
James Kuszmaul | e3df1ed | 2023-02-20 16:21:17 -0800 | [diff] [blame] | 111 | "//frc971/control_loops/drivetrain/localization:localizer_output_fbs", |
milind-u | 2f101fc | 2023-01-21 12:28:49 -0800 | [diff] [blame] | 112 | "//frc971/vision:calibration_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 113 | "//y2022/vision:target_estimate_fbs", |
Ravago Jones | 32bd3cb | 2022-03-26 15:45:03 -0700 | [diff] [blame] | 114 | "//y2022/vision:ball_color_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 115 | ], |
| 116 | target_compatible_with = ["@platforms//os:linux"], |
| 117 | visibility = ["//visibility:public"], |
| 118 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 119 | "//aos/events:aos_config", |
| 120 | "//frc971/control_loops/drivetrain:aos_config", |
| 121 | "//frc971/input:aos_config", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 122 | ], |
| 123 | ) |
| 124 | for pi in [ |
| 125 | "pi1", |
| 126 | "pi2", |
| 127 | "pi3", |
| 128 | "pi4", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 129 | ] |
| 130 | ] |
| 131 | |
| 132 | aos_config( |
James Kuszmaul | ef35d73 | 2022-02-12 16:37:32 -0800 | [diff] [blame] | 133 | name = "config_imu", |
| 134 | src = "y2022_imu.json", |
| 135 | flatbuffers = [ |
| 136 | "//aos/network:message_bridge_client_fbs", |
| 137 | "//aos/network:message_bridge_server_fbs", |
| 138 | "//aos/network:timestamp_fbs", |
| 139 | "//aos/network:remote_message_fbs", |
James Kuszmaul | 51fa1ae | 2022-02-26 00:49:57 -0800 | [diff] [blame] | 140 | "//y2022/localizer:localizer_status_fbs", |
James Kuszmaul | e3df1ed | 2023-02-20 16:21:17 -0800 | [diff] [blame] | 141 | "//frc971/control_loops/drivetrain/localization:localizer_output_fbs", |
James Kuszmaul | 0dedb5e | 2022-03-05 16:02:20 -0800 | [diff] [blame] | 142 | "//y2022/localizer:localizer_visualization_fbs", |
James Kuszmaul | ef35d73 | 2022-02-12 16:37:32 -0800 | [diff] [blame] | 143 | ], |
| 144 | target_compatible_with = ["@platforms//os:linux"], |
| 145 | visibility = ["//visibility:public"], |
| 146 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 147 | "//aos/events:aos_config", |
| 148 | "//frc971/control_loops/drivetrain:aos_config", |
James Kuszmaul | ef35d73 | 2022-02-12 16:37:32 -0800 | [diff] [blame] | 149 | ], |
| 150 | ) |
| 151 | |
| 152 | aos_config( |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 153 | name = "config_logger", |
| 154 | src = "y2022_logger.json", |
| 155 | flatbuffers = [ |
| 156 | "//aos/network:message_bridge_client_fbs", |
| 157 | "//aos/network:message_bridge_server_fbs", |
| 158 | "//aos/network:timestamp_fbs", |
| 159 | "//aos/network:remote_message_fbs", |
| 160 | "//frc971/vision:vision_fbs", |
milind-u | 2f101fc | 2023-01-21 12:28:49 -0800 | [diff] [blame] | 161 | "//frc971/vision:calibration_fbs", |
Ravago Jones | 32bd3cb | 2022-03-26 15:45:03 -0700 | [diff] [blame] | 162 | "//y2022/vision:ball_color_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 163 | ], |
| 164 | target_compatible_with = ["@platforms//os:linux"], |
| 165 | visibility = ["//visibility:public"], |
| 166 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 167 | "//aos/events:aos_config", |
| 168 | "//frc971/control_loops/drivetrain:aos_config", |
| 169 | "//frc971/input:aos_config", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 170 | ], |
| 171 | ) |
| 172 | |
| 173 | aos_config( |
| 174 | name = "config_roborio", |
| 175 | src = "y2022_roborio.json", |
| 176 | flatbuffers = [ |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 177 | ":setpoint_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 178 | "//aos/network:remote_message_fbs", |
| 179 | "//aos/network:message_bridge_client_fbs", |
| 180 | "//aos/network:message_bridge_server_fbs", |
| 181 | "//aos/network:timestamp_fbs", |
Ravago Jones | 32bd3cb | 2022-03-26 15:45:03 -0700 | [diff] [blame] | 182 | "//y2022/vision:ball_color_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 183 | "//y2019/control_loops/drivetrain:target_selector_fbs", |
| 184 | "//y2022/control_loops/superstructure:superstructure_goal_fbs", |
| 185 | "//y2022/control_loops/superstructure:superstructure_output_fbs", |
| 186 | "//y2022/control_loops/superstructure:superstructure_position_fbs", |
Milind Upadhyay | 482b0ba | 2022-02-26 21:51:59 -0800 | [diff] [blame] | 187 | "//y2022/control_loops/superstructure:superstructure_can_position_fbs", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 188 | "//y2022/control_loops/superstructure:superstructure_status_fbs", |
| 189 | ], |
| 190 | target_compatible_with = ["@platforms//os:linux"], |
| 191 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 192 | "//aos/events:aos_config", |
| 193 | "//frc971/autonomous:aos_config", |
| 194 | "//frc971/control_loops/drivetrain:aos_config", |
| 195 | "//frc971/input:aos_config", |
| 196 | "//frc971/wpilib:aos_config", |
milind-u | f2f59aa | 2022-01-23 21:06:12 -0800 | [diff] [blame] | 197 | ], |
| 198 | ) |
| 199 | |
| 200 | [ |
| 201 | jinja2_template( |
| 202 | name = "y2022_pi" + str(num) + ".json", |
| 203 | src = "y2022_pi_template.json", |
| 204 | parameters = {"NUM": str(num)}, |
| 205 | target_compatible_with = ["@platforms//os:linux"], |
| 206 | ) |
| 207 | for num in range(1, 6) |
| 208 | ] |
| 209 | |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 210 | cc_library( |
| 211 | name = "constants", |
| 212 | srcs = [ |
| 213 | "constants.cc", |
| 214 | ], |
| 215 | hdrs = [ |
| 216 | "constants.h", |
| 217 | ], |
| 218 | visibility = ["//visibility:public"], |
| 219 | deps = [ |
| 220 | "//aos/mutex", |
| 221 | "//aos/network:team_number", |
| 222 | "//frc971:constants", |
| 223 | "//frc971/control_loops:pose", |
| 224 | "//frc971/control_loops:static_zeroing_single_dof_profiled_subsystem", |
Ravago Jones | 3283ce0 | 2022-03-09 19:31:29 -0800 | [diff] [blame] | 225 | "//frc971/shooter_interpolation:interpolation", |
Nathan Leong | 342b85e | 2023-01-08 13:49:33 -0800 | [diff] [blame] | 226 | "//frc971/wpilib:wpilib_utils", |
James Kuszmaul | ec635d2 | 2023-08-12 18:39:24 -0700 | [diff] [blame] | 227 | "//frc971/zeroing:pot_and_absolute_encoder", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 228 | "//y2022/control_loops/drivetrain:polydrivetrain_plants", |
Austin Schuh | 39f26f6 | 2022-02-24 21:34:46 -0800 | [diff] [blame] | 229 | "//y2022/control_loops/superstructure/catapult:catapult_plants", |
Siddhant Kanwar | 0e37f59 | 2022-02-21 19:26:50 -0800 | [diff] [blame] | 230 | "//y2022/control_loops/superstructure/climber:climber_plants", |
Yash Chainani | 997a749 | 2022-01-29 15:48:56 -0800 | [diff] [blame] | 231 | "//y2022/control_loops/superstructure/intake:intake_plants", |
Henry Speiser | 55aa3ba | 2022-02-21 23:21:12 -0800 | [diff] [blame] | 232 | "//y2022/control_loops/superstructure/turret:turret_plants", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 233 | "@com_google_absl//absl/base", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame^] | 234 | "@com_google_absl//absl/log", |
| 235 | "@com_google_absl//absl/log:check", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 236 | ], |
| 237 | ) |
| 238 | |
| 239 | cc_binary( |
| 240 | name = "wpilib_interface", |
| 241 | srcs = [ |
| 242 | "wpilib_interface.cc", |
| 243 | ], |
| 244 | target_compatible_with = ["//tools/platforms/hardware:roborio"], |
| 245 | deps = [ |
| 246 | ":constants", |
| 247 | "//aos:init", |
| 248 | "//aos:math", |
| 249 | "//aos/events:shm_event_loop", |
| 250 | "//aos/logging", |
| 251 | "//aos/stl_mutex", |
| 252 | "//aos/time", |
| 253 | "//aos/util:log_interval", |
| 254 | "//aos/util:phased_loop", |
| 255 | "//aos/util:wrapping_counter", |
| 256 | "//frc971/autonomous:auto_mode_fbs", |
| 257 | "//frc971/control_loops:control_loop", |
| 258 | "//frc971/control_loops:control_loops_fbs", |
| 259 | "//frc971/control_loops/drivetrain:drivetrain_position_fbs", |
| 260 | "//frc971/input:robot_state_fbs", |
Ravago Jones | 0e86e24 | 2022-02-12 18:38:14 -0800 | [diff] [blame] | 261 | "//frc971/queues:gyro_fbs", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 262 | "//frc971/wpilib:ADIS16448", |
| 263 | "//frc971/wpilib:buffered_pcm", |
| 264 | "//frc971/wpilib:drivetrain_writer", |
| 265 | "//frc971/wpilib:encoder_and_potentiometer", |
| 266 | "//frc971/wpilib:interrupt_edge_counting", |
| 267 | "//frc971/wpilib:joystick_sender", |
| 268 | "//frc971/wpilib:logging_fbs", |
| 269 | "//frc971/wpilib:loop_output_handler", |
| 270 | "//frc971/wpilib:pdp_fetcher", |
| 271 | "//frc971/wpilib:sensor_reader", |
| 272 | "//frc971/wpilib:wpilib_interface", |
| 273 | "//frc971/wpilib:wpilib_robot_base", |
| 274 | "//third_party:phoenix", |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 275 | "//third_party:phoenix6", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 276 | "//third_party:wpilib", |
Henry Speiser | 77747b7 | 2022-03-06 17:18:29 -0800 | [diff] [blame] | 277 | "//y2022/control_loops/superstructure:led_indicator_lib", |
Milind Upadhyay | 482b0ba | 2022-02-26 21:51:59 -0800 | [diff] [blame] | 278 | "//y2022/control_loops/superstructure:superstructure_can_position_fbs", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 279 | "//y2022/control_loops/superstructure:superstructure_output_fbs", |
| 280 | "//y2022/control_loops/superstructure:superstructure_position_fbs", |
| 281 | ], |
| 282 | ) |
| 283 | |
| 284 | cc_binary( |
| 285 | name = "joystick_reader", |
| 286 | srcs = [ |
| 287 | ":joystick_reader.cc", |
| 288 | ], |
| 289 | deps = [ |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 290 | ":constants", |
| 291 | ":setpoint_fbs", |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 292 | "//aos:init", |
| 293 | "//aos/actions:action_lib", |
| 294 | "//aos/logging", |
| 295 | "//frc971/autonomous:auto_fbs", |
| 296 | "//frc971/autonomous:base_autonomous_actor", |
| 297 | "//frc971/control_loops:profiled_subsystem_fbs", |
| 298 | "//frc971/input:action_joystick_input", |
| 299 | "//frc971/input:drivetrain_input", |
| 300 | "//frc971/input:joystick_input", |
| 301 | "//y2022/control_loops/drivetrain:drivetrain_base", |
| 302 | "//y2022/control_loops/superstructure:superstructure_goal_fbs", |
| 303 | "//y2022/control_loops/superstructure:superstructure_status_fbs", |
| 304 | ], |
| 305 | ) |
Milo Lin | 5d49af0 | 2022-02-05 12:50:32 -0800 | [diff] [blame] | 306 | |
James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 307 | static_flatbuffer( |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 308 | name = "setpoint_fbs", |
| 309 | srcs = [ |
| 310 | "setpoint.fbs", |
| 311 | ], |
Henry Speiser | 0b9b005 | 2022-03-02 23:07:40 -0800 | [diff] [blame] | 312 | target_compatible_with = ["@platforms//os:linux"], |
| 313 | ) |
| 314 | |
| 315 | cc_binary( |
| 316 | name = "setpoint_setter", |
| 317 | srcs = ["setpoint_setter.cc"], |
| 318 | target_compatible_with = ["@platforms//os:linux"], |
| 319 | deps = [ |
| 320 | ":constants", |
| 321 | ":setpoint_fbs", |
| 322 | "//aos:init", |
| 323 | "//aos/events:shm_event_loop", |
| 324 | ], |
| 325 | ) |
| 326 | |
Milo Lin | 5d49af0 | 2022-02-05 12:50:32 -0800 | [diff] [blame] | 327 | py_library( |
| 328 | name = "python_init", |
| 329 | srcs = ["__init__.py"], |
| 330 | target_compatible_with = ["@platforms//os:linux"], |
| 331 | visibility = ["//visibility:public"], |
| 332 | ) |
James Kuszmaul | f3ef9e1 | 2022-03-05 17:13:00 -0800 | [diff] [blame] | 333 | |
| 334 | sh_binary( |
| 335 | name = "log_web_proxy", |
| 336 | srcs = ["log_web_proxy.sh"], |
| 337 | data = [ |
| 338 | ":aos_config", |
| 339 | "//aos/network:log_web_proxy_main", |
| 340 | "//y2022/www:field_main_bundle.min.js", |
| 341 | "//y2022/www:files", |
| 342 | ], |
| 343 | target_compatible_with = ["@platforms//os:linux"], |
| 344 | ) |