Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -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 = "//y2020:aos_config", |
| 10 | ) |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 11 | |
| 12 | robot_downloader( |
Austin Schuh | d58b290 | 2020-03-01 19:28:04 -0800 | [diff] [blame] | 13 | binaries = [ |
| 14 | ":setpoint_setter", |
James Kuszmaul | 39a47bb | 2021-08-18 20:03:09 -0700 | [diff] [blame] | 15 | "//aos/network:web_proxy_main", |
Austin Schuh | d58b290 | 2020-03-01 19:28:04 -0800 | [diff] [blame] | 16 | ], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 17 | data = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 18 | ":aos_config", |
Maxwell Henderson | 1c0843c | 2023-12-22 16:20:59 -0800 | [diff] [blame] | 19 | "@ctre_phoenix6_api_cpp_athena//:shared_libraries", |
| 20 | "@ctre_phoenix6_tools_athena//:shared_libraries", |
Austin Schuh | de605f1 | 2022-02-23 23:08:19 -0800 | [diff] [blame] | 21 | "@ctre_phoenix_api_cpp_athena//:shared_libraries", |
| 22 | "@ctre_phoenix_cci_athena//:shared_libraries", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 23 | ], |
Ravago Jones | c2a0802 | 2021-02-06 17:40:54 -0800 | [diff] [blame] | 24 | dirs = [ |
James Kuszmaul | 75a18c5 | 2021-03-10 22:02:07 -0800 | [diff] [blame] | 25 | "//y2020/actors:splines", |
James Kuszmaul | 39a47bb | 2021-08-18 20:03:09 -0700 | [diff] [blame] | 26 | "//y2020/www:www_files", |
Ravago Jones | c2a0802 | 2021-02-06 17:40:54 -0800 | [diff] [blame] | 27 | ], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 28 | start_binaries = [ |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 29 | "//aos/events/logging:logger_main", |
James Kuszmaul | 5e6aa25 | 2021-08-28 22:19:29 -0700 | [diff] [blame] | 30 | "//aos/network:web_proxy_main", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 31 | ":joystick_reader", |
| 32 | ":wpilib_interface", |
Austin Schuh | 6aa77be | 2020-02-22 21:06:40 -0800 | [diff] [blame] | 33 | "//aos/network:message_bridge_client", |
| 34 | "//aos/network:message_bridge_server", |
| 35 | "//y2020/actors:binaries", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 36 | "//y2020/control_loops/drivetrain:drivetrain", |
James Kuszmaul | 75a18c5 | 2021-03-10 22:02:07 -0800 | [diff] [blame] | 37 | "//y2020/control_loops/drivetrain:trajectory_generator", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 38 | "//y2020/control_loops/superstructure:superstructure", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 39 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 40 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 41 | ) |
| 42 | |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 43 | robot_downloader( |
| 44 | name = "pi_download", |
Jim Ostrowski | baa4369 | 2020-03-08 16:25:10 -0700 | [diff] [blame] | 45 | binaries = [ |
James Kuszmaul | 7e95881 | 2023-02-11 15:34:31 -0800 | [diff] [blame] | 46 | "//frc971/vision:intrinsics_calibration", |
Jim Ostrowski | baa4369 | 2020-03-08 16:25:10 -0700 | [diff] [blame] | 47 | "//y2020/vision:viewer", |
| 48 | ], |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 49 | data = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 50 | ":aos_config", |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 51 | ], |
| 52 | dirs = [ |
| 53 | "//y2020/www:www_files", |
| 54 | ], |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 55 | start_binaries = [ |
Austin Schuh | 867bd92 | 2021-11-07 16:59:52 -0800 | [diff] [blame] | 56 | "//aos/events/logging:logger_main", |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 57 | "//aos/network:message_bridge_client", |
| 58 | "//aos/network:message_bridge_server", |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 59 | "//aos/network:web_proxy_main", |
Austin Schuh | 393015b | 2020-04-20 17:24:39 -0700 | [diff] [blame] | 60 | "//y2020/vision:camera_reader", |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 61 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 62 | target_compatible_with = ["//tools/platforms/hardware:raspberry_pi"], |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 63 | target_type = "pi", |
| 64 | ) |
| 65 | |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 66 | cc_library( |
| 67 | name = "constants", |
| 68 | srcs = [ |
| 69 | "constants.cc", |
| 70 | ], |
| 71 | hdrs = [ |
| 72 | "constants.h", |
| 73 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 74 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 75 | visibility = ["//visibility:public"], |
| 76 | deps = [ |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 77 | "//aos/network:team_number", |
Brian Silverman | 1463c09 | 2020-10-30 17:28:24 -0700 | [diff] [blame] | 78 | "//aos/stl_mutex", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 79 | "//frc971:constants", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 80 | "//frc971/control_loops:static_zeroing_single_dof_profiled_subsystem", |
James Kuszmaul | 98154a2 | 2021-04-03 16:09:29 -0700 | [diff] [blame] | 81 | "//frc971/shooter_interpolation:interpolation", |
James Kuszmaul | ec635d2 | 2023-08-12 18:39:24 -0700 | [diff] [blame] | 82 | "//frc971/zeroing:absolute_and_absolute_encoder", |
| 83 | "//frc971/zeroing:absolute_encoder", |
| 84 | "//frc971/zeroing:pot_and_absolute_encoder", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 85 | "//y2020/control_loops/drivetrain:polydrivetrain_plants", |
Austin Schuh | 9dcd520 | 2020-02-20 20:06:04 -0800 | [diff] [blame] | 86 | "//y2020/control_loops/superstructure/accelerator:accelerator_plants", |
| 87 | "//y2020/control_loops/superstructure/control_panel:control_panel_plants", |
| 88 | "//y2020/control_loops/superstructure/finisher:finisher_plants", |
Sabina Davis | a587fbd | 2020-01-31 22:11:15 -0800 | [diff] [blame] | 89 | "//y2020/control_loops/superstructure/hood:hood_plants", |
Sabina Davis | e8d3899 | 2020-02-02 15:00:31 -0800 | [diff] [blame] | 90 | "//y2020/control_loops/superstructure/intake:intake_plants", |
Kai Tinkess | 10943cf | 2020-02-01 15:49:57 -0800 | [diff] [blame] | 91 | "//y2020/control_loops/superstructure/turret:turret_plants", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 92 | "@com_google_absl//absl/base", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 93 | "@com_google_absl//absl/log", |
| 94 | "@com_google_absl//absl/log:check", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 95 | ], |
| 96 | ) |
| 97 | |
| 98 | cc_binary( |
| 99 | name = "wpilib_interface", |
| 100 | srcs = [ |
| 101 | "wpilib_interface.cc", |
| 102 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 103 | target_compatible_with = ["//tools/platforms/hardware:roborio"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 104 | deps = [ |
| 105 | ":constants", |
| 106 | "//aos:init", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 107 | "//aos:math", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 108 | "//aos/events:shm_event_loop", |
| 109 | "//aos/logging", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 110 | "//aos/stl_mutex", |
| 111 | "//aos/time", |
| 112 | "//aos/util:log_interval", |
| 113 | "//aos/util:phased_loop", |
| 114 | "//aos/util:wrapping_counter", |
| 115 | "//frc971/autonomous:auto_mode_fbs", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame] | 116 | "//frc971/control_loops:control_loop", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 117 | "//frc971/control_loops:control_loops_fbs", |
| 118 | "//frc971/control_loops/drivetrain:drivetrain_position_fbs", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame] | 119 | "//frc971/input:robot_state_fbs", |
James Kuszmaul | 0a98140 | 2021-10-09 21:00:34 -0700 | [diff] [blame] | 120 | "//frc971/wpilib:ADIS16448", |
James Kuszmaul | a244a91 | 2020-01-18 13:50:50 -0800 | [diff] [blame] | 121 | "//frc971/wpilib:ADIS16470", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 122 | "//frc971/wpilib:buffered_pcm", |
| 123 | "//frc971/wpilib:drivetrain_writer", |
| 124 | "//frc971/wpilib:encoder_and_potentiometer", |
| 125 | "//frc971/wpilib:interrupt_edge_counting", |
| 126 | "//frc971/wpilib:joystick_sender", |
| 127 | "//frc971/wpilib:logging_fbs", |
| 128 | "//frc971/wpilib:loop_output_handler", |
| 129 | "//frc971/wpilib:pdp_fetcher", |
| 130 | "//frc971/wpilib:sensor_reader", |
| 131 | "//frc971/wpilib:wpilib_interface", |
| 132 | "//frc971/wpilib:wpilib_robot_base", |
Alex Perry | c4691f5 | 2020-02-17 19:20:01 -0800 | [diff] [blame] | 133 | "//third_party:phoenix", |
Maxwell Henderson | 1c0843c | 2023-12-22 16:20:59 -0800 | [diff] [blame] | 134 | "//third_party:phoenix6", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 135 | "//third_party:wpilib", |
| 136 | "//y2020/control_loops/superstructure:superstructure_output_fbs", |
| 137 | "//y2020/control_loops/superstructure:superstructure_position_fbs", |
James Kuszmaul | 0a98140 | 2021-10-09 21:00:34 -0700 | [diff] [blame] | 138 | "//y2020/control_loops/superstructure/shooter:shooter_tuning_readings_fbs", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 139 | ], |
| 140 | ) |
| 141 | |
| 142 | cc_binary( |
| 143 | name = "joystick_reader", |
| 144 | srcs = [ |
| 145 | ":joystick_reader.cc", |
| 146 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 147 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 148 | deps = [ |
Austin Schuh | d58b290 | 2020-03-01 19:28:04 -0800 | [diff] [blame] | 149 | ":setpoint_fbs", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 150 | "//aos:init", |
| 151 | "//aos/actions:action_lib", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 152 | "//aos/logging", |
| 153 | "//frc971/autonomous:auto_fbs", |
| 154 | "//frc971/autonomous:base_autonomous_actor", |
| 155 | "//frc971/control_loops:profiled_subsystem_fbs", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame] | 156 | "//frc971/input:action_joystick_input", |
| 157 | "//frc971/input:drivetrain_input", |
| 158 | "//frc971/input:joystick_input", |
Austin Schuh | 0b00c86 | 2021-10-17 17:39:10 -0700 | [diff] [blame] | 159 | "//frc971/zeroing:wrap", |
Sabina Davis | a8fed3d | 2020-02-22 21:44:57 -0800 | [diff] [blame] | 160 | "//y2020:constants", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 161 | "//y2020/control_loops/drivetrain:drivetrain_base", |
| 162 | "//y2020/control_loops/superstructure:superstructure_goal_fbs", |
| 163 | "//y2020/control_loops/superstructure:superstructure_status_fbs", |
| 164 | ], |
| 165 | ) |
| 166 | |
| 167 | aos_config( |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 168 | name = "aos_config", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 169 | src = "y2020.json", |
Austin Schuh | c61e9c0 | 2021-04-26 12:10:40 -0700 | [diff] [blame] | 170 | flatbuffers = [ |
| 171 | "//aos/network:message_bridge_client_fbs", |
| 172 | "//aos/network:message_bridge_server_fbs", |
| 173 | "//aos/network:timestamp_fbs", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 174 | "//frc971/vision:vision_fbs", |
Austin Schuh | c61e9c0 | 2021-04-26 12:10:40 -0700 | [diff] [blame] | 175 | "//y2020/vision/sift:sift_fbs", |
| 176 | "//y2020/vision/sift:sift_training_fbs", |
Austin Schuh | c61e9c0 | 2021-04-26 12:10:40 -0700 | [diff] [blame] | 177 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 178 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 179 | visibility = ["//visibility:public"], |
| 180 | deps = [ |
Austin Schuh | 41fad8c | 2021-10-23 21:25:12 -0700 | [diff] [blame] | 181 | ":config_logger", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 182 | ":config_pi1", |
| 183 | ":config_pi2", |
| 184 | ":config_pi3", |
Austin Schuh | 196a445 | 2020-03-15 23:12:03 -0700 | [diff] [blame] | 185 | ":config_pi4", |
James Kuszmaul | 9c12812 | 2021-03-22 22:24:36 -0700 | [diff] [blame] | 186 | ":config_pi5", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 187 | ":config_roborio", |
| 188 | ], |
| 189 | ) |
| 190 | |
| 191 | [ |
| 192 | aos_config( |
| 193 | name = "config_" + pi, |
| 194 | src = "y2020_" + pi + ".json", |
| 195 | flatbuffers = [ |
| 196 | "//aos/network:message_bridge_client_fbs", |
| 197 | "//aos/network:message_bridge_server_fbs", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 198 | "//aos/network:remote_message_fbs", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 199 | "//aos/network:timestamp_fbs", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 200 | "//frc971/vision:vision_fbs", |
| 201 | "//y2020/vision:galactic_search_path_fbs", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 202 | "//y2020/vision/sift:sift_fbs", |
| 203 | "//y2020/vision/sift:sift_training_fbs", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 204 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 205 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 206 | visibility = ["//visibility:public"], |
| 207 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 208 | "//aos/events:aos_config", |
| 209 | "//frc971/control_loops/drivetrain:aos_config", |
| 210 | "//frc971/input:aos_config", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 211 | ], |
| 212 | ) |
| 213 | for pi in [ |
| 214 | "pi1", |
| 215 | "pi2", |
| 216 | "pi3", |
Austin Schuh | 196a445 | 2020-03-15 23:12:03 -0700 | [diff] [blame] | 217 | "pi4", |
James Kuszmaul | 9c12812 | 2021-03-22 22:24:36 -0700 | [diff] [blame] | 218 | "pi5", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 219 | ] |
| 220 | ] |
| 221 | |
| 222 | aos_config( |
Austin Schuh | 41fad8c | 2021-10-23 21:25:12 -0700 | [diff] [blame] | 223 | name = "config_logger", |
| 224 | src = "y2020_logger.json", |
Austin Schuh | 3a2f4a4 | 2020-09-16 14:10:39 -0700 | [diff] [blame] | 225 | flatbuffers = [ |
| 226 | "//aos/network:message_bridge_client_fbs", |
| 227 | "//aos/network:message_bridge_server_fbs", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 228 | "//aos/network:remote_message_fbs", |
Austin Schuh | 3a2f4a4 | 2020-09-16 14:10:39 -0700 | [diff] [blame] | 229 | "//aos/network:timestamp_fbs", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 230 | "//frc971/vision:vision_fbs", |
Austin Schuh | 3a2f4a4 | 2020-09-16 14:10:39 -0700 | [diff] [blame] | 231 | "//y2020/vision/sift:sift_fbs", |
| 232 | "//y2020/vision/sift:sift_training_fbs", |
Austin Schuh | 3a2f4a4 | 2020-09-16 14:10:39 -0700 | [diff] [blame] | 233 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 234 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 3a2f4a4 | 2020-09-16 14:10:39 -0700 | [diff] [blame] | 235 | visibility = ["//visibility:public"], |
| 236 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 237 | "//aos/events:aos_config", |
| 238 | "//frc971/control_loops/drivetrain:aos_config", |
| 239 | "//frc971/input:aos_config", |
Austin Schuh | 3a2f4a4 | 2020-09-16 14:10:39 -0700 | [diff] [blame] | 240 | ], |
| 241 | ) |
| 242 | |
| 243 | aos_config( |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 244 | name = "config_roborio", |
| 245 | src = "y2020_roborio.json", |
| 246 | flatbuffers = [ |
| 247 | ":setpoint_fbs", |
Austin Schuh | 0de30f3 | 2020-12-06 12:44:28 -0800 | [diff] [blame] | 248 | "//aos/network:remote_message_fbs", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 249 | "//aos/network:message_bridge_client_fbs", |
| 250 | "//aos/network:message_bridge_server_fbs", |
| 251 | "//aos/network:timestamp_fbs", |
milind-u | 661a118 | 2021-09-21 20:30:43 -0700 | [diff] [blame] | 252 | "//y2020/control_loops/superstructure/shooter:shooter_tuning_params_fbs", |
milind-u | 4b31c4d | 2021-09-18 16:08:23 -0700 | [diff] [blame] | 253 | "//y2020/control_loops/superstructure/shooter:shooter_tuning_readings_fbs", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 254 | "//y2020/control_loops/superstructure:superstructure_goal_fbs", |
| 255 | "//y2019/control_loops/drivetrain:target_selector_fbs", |
James Kuszmaul | 5ff8a86 | 2021-09-25 17:29:43 -0700 | [diff] [blame] | 256 | "//y2020/control_loops/drivetrain:localizer_debug_fbs", |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 257 | "//y2020/control_loops/superstructure:superstructure_output_fbs", |
| 258 | "//y2020/control_loops/superstructure:superstructure_position_fbs", |
| 259 | "//y2020/control_loops/superstructure:superstructure_status_fbs", |
| 260 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 261 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | ce3a191 | 2020-03-15 15:14:19 -0700 | [diff] [blame] | 262 | deps = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 263 | "//aos/events:aos_config", |
| 264 | "//frc971/autonomous:aos_config", |
| 265 | "//frc971/control_loops/drivetrain:aos_config", |
| 266 | "//frc971/input:aos_config", |
| 267 | "//frc971/wpilib:aos_config", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 268 | ], |
| 269 | ) |
| 270 | |
| 271 | py_library( |
| 272 | name = "python_init", |
| 273 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 274 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 275 | visibility = ["//visibility:public"], |
| 276 | ) |
Alex Perry | 5f474f2 | 2020-02-01 12:14:24 -0800 | [diff] [blame] | 277 | |
| 278 | sh_binary( |
James Kuszmaul | 5e6aa25 | 2021-08-28 22:19:29 -0700 | [diff] [blame] | 279 | name = "log_web_proxy", |
| 280 | srcs = ["log_web_proxy.sh"], |
| 281 | data = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 282 | ":aos_config", |
James Kuszmaul | 5e6aa25 | 2021-08-28 22:19:29 -0700 | [diff] [blame] | 283 | "//aos/network:log_web_proxy_main", |
| 284 | "//y2020/www:camera_main_bundle.min.js", |
| 285 | "//y2020/www:field_main_bundle.min.js", |
| 286 | "//y2020/www:files", |
| 287 | ], |
| 288 | target_compatible_with = ["@platforms//os:linux"], |
| 289 | ) |
| 290 | |
| 291 | sh_binary( |
Alex Perry | 5f474f2 | 2020-02-01 12:14:24 -0800 | [diff] [blame] | 292 | name = "web_proxy", |
| 293 | srcs = ["web_proxy.sh"], |
| 294 | data = [ |
Austin Schuh | c5fa6d9 | 2022-02-25 14:36:28 -0800 | [diff] [blame] | 295 | ":aos_config", |
Alex Perry | 5f474f2 | 2020-02-01 12:14:24 -0800 | [diff] [blame] | 296 | "//aos/network:web_proxy_main", |
Austin Schuh | da9d060 | 2019-09-15 17:29:38 -0700 | [diff] [blame] | 297 | "//y2020/www:camera_main_bundle.min.js", |
| 298 | "//y2020/www:field_main_bundle.min.js", |
Alex Perry | 5f474f2 | 2020-02-01 12:14:24 -0800 | [diff] [blame] | 299 | "//y2020/www:files", |
Alex Perry | 5f474f2 | 2020-02-01 12:14:24 -0800 | [diff] [blame] | 300 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 301 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | 5f474f2 | 2020-02-01 12:14:24 -0800 | [diff] [blame] | 302 | ) |
Austin Schuh | d58b290 | 2020-03-01 19:28:04 -0800 | [diff] [blame] | 303 | |
James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 304 | static_flatbuffer( |
Austin Schuh | d58b290 | 2020-03-01 19:28:04 -0800 | [diff] [blame] | 305 | name = "setpoint_fbs", |
| 306 | srcs = [ |
| 307 | "setpoint.fbs", |
| 308 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 309 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | d58b290 | 2020-03-01 19:28:04 -0800 | [diff] [blame] | 310 | ) |
| 311 | |
| 312 | cc_binary( |
| 313 | name = "setpoint_setter", |
| 314 | srcs = ["setpoint_setter.cc"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 315 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | d58b290 | 2020-03-01 19:28:04 -0800 | [diff] [blame] | 316 | deps = [ |
| 317 | ":setpoint_fbs", |
| 318 | "//aos:init", |
| 319 | "//aos/events:shm_event_loop", |
| 320 | ], |
| 321 | ) |
James Kuszmaul | 55d9fc7 | 2020-05-10 18:58:08 -0700 | [diff] [blame] | 322 | |
Austin Schuh | 3a2f4a4 | 2020-09-16 14:10:39 -0700 | [diff] [blame] | 323 | [ |
| 324 | jinja2_template( |
| 325 | name = "y2020_pi" + str(num) + ".json", |
| 326 | src = "y2020_pi_template.json", |
| 327 | parameters = {"NUM": str(num)}, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 328 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 3a2f4a4 | 2020-09-16 14:10:39 -0700 | [diff] [blame] | 329 | ) |
James Kuszmaul | 9c12812 | 2021-03-22 22:24:36 -0700 | [diff] [blame] | 330 | for num in range(1, 6) |
Austin Schuh | 3a2f4a4 | 2020-09-16 14:10:39 -0700 | [diff] [blame] | 331 | ] |