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