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