Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
James Kuszmaul | 5e6aa25 | 2021-08-28 22:19:29 -0700 | [diff] [blame] | 3 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_ts_library") |
Austin Schuh | 7d63eab | 2021-03-06 20:15:02 -0800 | [diff] [blame] | 4 | load("@npm_bazel_typescript//:defs.bzl", "ts_library") |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 5 | |
| 6 | flatbuffer_cc_library( |
| 7 | name = "superstructure_goal_fbs", |
| 8 | srcs = [ |
| 9 | "superstructure_goal.fbs", |
| 10 | ], |
| 11 | gen_reflections = 1, |
| 12 | includes = [ |
| 13 | "//frc971/control_loops:control_loops_fbs_includes", |
| 14 | "//frc971/control_loops:profiled_subsystem_fbs_includes", |
| 15 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 16 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 17 | ) |
| 18 | |
| 19 | flatbuffer_cc_library( |
| 20 | name = "superstructure_output_fbs", |
| 21 | srcs = [ |
| 22 | "superstructure_output.fbs", |
| 23 | ], |
| 24 | gen_reflections = 1, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 25 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 26 | ) |
| 27 | |
James Kuszmaul | 5e6aa25 | 2021-08-28 22:19:29 -0700 | [diff] [blame] | 28 | flatbuffer_ts_library( |
| 29 | name = "superstructure_status_ts_fbs", |
| 30 | srcs = [ |
| 31 | "superstructure_status.fbs", |
| 32 | ], |
| 33 | includes = [ |
| 34 | "//frc971/control_loops:control_loops_fbs_includes", |
| 35 | "//frc971/control_loops:profiled_subsystem_fbs_includes", |
| 36 | ], |
| 37 | target_compatible_with = ["@platforms//os:linux"], |
| 38 | ) |
| 39 | |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 40 | flatbuffer_cc_library( |
| 41 | name = "superstructure_status_fbs", |
| 42 | srcs = [ |
| 43 | "superstructure_status.fbs", |
| 44 | ], |
| 45 | gen_reflections = 1, |
| 46 | includes = [ |
| 47 | "//frc971/control_loops:control_loops_fbs_includes", |
| 48 | "//frc971/control_loops:profiled_subsystem_fbs_includes", |
| 49 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 50 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 51 | ) |
| 52 | |
| 53 | flatbuffer_cc_library( |
| 54 | name = "superstructure_position_fbs", |
| 55 | srcs = [ |
| 56 | "superstructure_position.fbs", |
| 57 | ], |
| 58 | gen_reflections = 1, |
| 59 | includes = [ |
| 60 | "//frc971/control_loops:control_loops_fbs_includes", |
| 61 | "//frc971/control_loops:profiled_subsystem_fbs_includes", |
| 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 | ) |
| 65 | |
| 66 | cc_library( |
| 67 | name = "superstructure_lib", |
| 68 | srcs = [ |
| 69 | "superstructure.cc", |
| 70 | ], |
| 71 | hdrs = [ |
| 72 | "superstructure.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 | deps = [ |
John Park | 0a245a0 | 2020-02-02 14:10:15 -0800 | [diff] [blame] | 76 | ":climber", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 77 | ":superstructure_goal_fbs", |
| 78 | ":superstructure_output_fbs", |
| 79 | ":superstructure_position_fbs", |
| 80 | ":superstructure_status_fbs", |
milind-u | 0beb7dc | 2021-10-16 19:31:33 -0700 | [diff] [blame^] | 81 | "//aos/containers:sized_array", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 82 | "//aos/events:event_loop", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame] | 83 | "//frc971/control_loops:control_loop", |
James Kuszmaul | b1b2d8e | 2020-02-21 21:11:46 -0800 | [diff] [blame] | 84 | "//frc971/control_loops:control_loops_fbs", |
| 85 | "//frc971/control_loops/drivetrain:drivetrain_status_fbs", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 86 | "//y2020:constants", |
Sabina Davis | 0f31d3f | 2020-02-20 20:41:00 -0800 | [diff] [blame] | 87 | "//y2020/control_loops/superstructure/shooter", |
James Kuszmaul | b1b2d8e | 2020-02-21 21:11:46 -0800 | [diff] [blame] | 88 | "//y2020/control_loops/superstructure/turret:aiming", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 89 | ], |
| 90 | ) |
| 91 | |
| 92 | cc_binary( |
| 93 | name = "superstructure", |
| 94 | srcs = [ |
| 95 | "superstructure_main.cc", |
| 96 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 97 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 98 | deps = [ |
| 99 | ":superstructure_lib", |
| 100 | "//aos:init", |
| 101 | "//aos/events:shm_event_loop", |
| 102 | ], |
| 103 | ) |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 104 | |
| 105 | cc_test( |
| 106 | name = "superstructure_lib_test", |
| 107 | srcs = [ |
| 108 | "superstructure_lib_test.cc", |
| 109 | ], |
| 110 | data = [ |
Austin Schuh | 14d7d3d | 2020-09-10 18:14:36 -0700 | [diff] [blame] | 111 | "//y2020:config", |
milind-u | 7baf734 | 2021-08-25 18:31:26 -0700 | [diff] [blame] | 112 | "@superstructure_replay", |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 113 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 114 | target_compatible_with = ["@platforms//os:linux"], |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 115 | deps = [ |
| 116 | ":superstructure_goal_fbs", |
| 117 | ":superstructure_lib", |
| 118 | ":superstructure_output_fbs", |
| 119 | ":superstructure_position_fbs", |
| 120 | ":superstructure_status_fbs", |
| 121 | "//aos:math", |
milind-u | 7baf734 | 2021-08-25 18:31:26 -0700 | [diff] [blame] | 122 | "//aos/events/logging:log_reader", |
Austin Schuh | b06f03b | 2021-02-17 22:00:37 -0800 | [diff] [blame] | 123 | "//aos/events/logging:log_writer", |
milind-u | 7baf734 | 2021-08-25 18:31:26 -0700 | [diff] [blame] | 124 | "//aos/network:team_number", |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 125 | "//aos/testing:googletest", |
| 126 | "//aos/time", |
| 127 | "//frc971/control_loops:capped_test_plant", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame] | 128 | "//frc971/control_loops:control_loop_test", |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 129 | "//frc971/control_loops:position_sensor_sim", |
| 130 | "//frc971/control_loops:team_number_test_environment", |
| 131 | "//frc971/control_loops/drivetrain:drivetrain_status_fbs", |
| 132 | "//y2020/control_loops/superstructure/hood:hood_plants", |
Sabina Davis | 0f2d38c | 2020-02-08 17:01:21 -0800 | [diff] [blame] | 133 | "//y2020/control_loops/superstructure/intake:intake_plants", |
Sabina Davis | 0f31d3f | 2020-02-20 20:41:00 -0800 | [diff] [blame] | 134 | "//y2020/control_loops/superstructure/shooter:shooter_plants", |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 135 | ], |
| 136 | ) |
John Park | 0a245a0 | 2020-02-02 14:10:15 -0800 | [diff] [blame] | 137 | |
| 138 | cc_library( |
| 139 | name = "climber", |
| 140 | srcs = [ |
| 141 | "climber.cc", |
| 142 | ], |
| 143 | hdrs = [ |
| 144 | "climber.h", |
| 145 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 146 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 0a245a0 | 2020-02-02 14:10:15 -0800 | [diff] [blame] | 147 | deps = [ |
| 148 | ":superstructure_goal_fbs", |
| 149 | ":superstructure_output_fbs", |
James Kuszmaul | 6175066 | 2021-06-21 21:32:33 -0700 | [diff] [blame] | 150 | "//frc971/control_loops:control_loop", |
John Park | 0a245a0 | 2020-02-02 14:10:15 -0800 | [diff] [blame] | 151 | "//frc971/control_loops:control_loops_fbs", |
| 152 | "//frc971/control_loops:profiled_subsystem_fbs", |
| 153 | ], |
| 154 | ) |
Austin Schuh | 7d63eab | 2021-03-06 20:15:02 -0800 | [diff] [blame] | 155 | |
| 156 | ts_library( |
James Kuszmaul | 7810140 | 2021-09-11 12:42:21 -0700 | [diff] [blame] | 157 | name = "turret_plotter", |
| 158 | srcs = ["turret_plotter.ts"], |
| 159 | target_compatible_with = ["@platforms//os:linux"], |
| 160 | deps = [ |
James Kuszmaul | da52ce6 | 2021-09-25 21:51:42 -0700 | [diff] [blame] | 161 | "//aos:configuration_ts_fbs", |
James Kuszmaul | 7810140 | 2021-09-11 12:42:21 -0700 | [diff] [blame] | 162 | "//aos/network/www:aos_plotter", |
| 163 | "//aos/network/www:colors", |
James Kuszmaul | da52ce6 | 2021-09-25 21:51:42 -0700 | [diff] [blame] | 164 | "//aos/network/www:plotter", |
James Kuszmaul | 7810140 | 2021-09-11 12:42:21 -0700 | [diff] [blame] | 165 | "//aos/network/www:proxy", |
James Kuszmaul | da52ce6 | 2021-09-25 21:51:42 -0700 | [diff] [blame] | 166 | "//aos/network/www:reflection_ts", |
| 167 | "@com_github_google_flatbuffers//ts:flatbuffers_ts", |
James Kuszmaul | 7810140 | 2021-09-11 12:42:21 -0700 | [diff] [blame] | 168 | ], |
| 169 | ) |
| 170 | |
| 171 | ts_library( |
Austin Schuh | 7d63eab | 2021-03-06 20:15:02 -0800 | [diff] [blame] | 172 | name = "finisher_plotter", |
| 173 | srcs = ["finisher_plotter.ts"], |
| 174 | target_compatible_with = ["@platforms//os:linux"], |
| 175 | deps = [ |
| 176 | "//aos/network/www:aos_plotter", |
Ravago Jones | 819ba1f | 2021-03-10 10:48:10 -0800 | [diff] [blame] | 177 | "//aos/network/www:colors", |
Austin Schuh | 7d63eab | 2021-03-06 20:15:02 -0800 | [diff] [blame] | 178 | "//aos/network/www:proxy", |
| 179 | ], |
| 180 | ) |
| 181 | |
| 182 | ts_library( |
| 183 | name = "accelerator_plotter", |
| 184 | srcs = ["accelerator_plotter.ts"], |
| 185 | target_compatible_with = ["@platforms//os:linux"], |
| 186 | deps = [ |
| 187 | "//aos/network/www:aos_plotter", |
Ravago Jones | 819ba1f | 2021-03-10 10:48:10 -0800 | [diff] [blame] | 188 | "//aos/network/www:colors", |
Austin Schuh | 7d63eab | 2021-03-06 20:15:02 -0800 | [diff] [blame] | 189 | "//aos/network/www:proxy", |
| 190 | ], |
| 191 | ) |
Austin Schuh | 2efe168 | 2021-03-06 22:47:15 -0800 | [diff] [blame] | 192 | |
| 193 | ts_library( |
| 194 | name = "hood_plotter", |
| 195 | srcs = ["hood_plotter.ts"], |
| 196 | target_compatible_with = ["@platforms//os:linux"], |
| 197 | deps = [ |
| 198 | "//aos/network/www:aos_plotter", |
Ravago Jones | 819ba1f | 2021-03-10 10:48:10 -0800 | [diff] [blame] | 199 | "//aos/network/www:colors", |
Austin Schuh | 2efe168 | 2021-03-06 22:47:15 -0800 | [diff] [blame] | 200 | "//aos/network/www:proxy", |
| 201 | ], |
| 202 | ) |