Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 2 | |
Philipp Schrader | 2614754 | 2023-01-03 01:44:07 -0800 | [diff] [blame] | 3 | py_library( |
| 4 | name = "constants", |
| 5 | srcs = ["constants.py"], |
| 6 | deps = [ |
| 7 | "@pip//pygobject", |
| 8 | ], |
| 9 | ) |
| 10 | |
| 11 | py_library( |
| 12 | name = "drawing_constants", |
| 13 | srcs = ["drawing_constants.py"], |
| 14 | deps = [ |
| 15 | ":color", |
| 16 | "@pip//numpy", |
| 17 | "@pip//pygobject", |
| 18 | ], |
| 19 | ) |
| 20 | |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 21 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 22 | name = "haptic_wheel", |
| 23 | srcs = [ |
| 24 | "haptic_wheel.py", |
| 25 | ], |
| 26 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 27 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 28 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 29 | "//frc971/control_loops/python:controls", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 30 | "@pip//glog", |
| 31 | "@pip//matplotlib", |
Austin Schuh | 6647cb2 | 2023-02-21 12:35:25 -0800 | [diff] [blame] | 32 | "@pip//pygobject", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 33 | "@pip//python_gflags", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 34 | ], |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 35 | ) |
| 36 | |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 37 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 38 | name = "controls", |
| 39 | srcs = [ |
| 40 | "cim.py", |
| 41 | "control_loop.py", |
| 42 | "controls.py", |
| 43 | "libcdd.py", |
| 44 | "polytope.py", |
| 45 | ], |
| 46 | data = [ |
| 47 | "//third_party/cddlib:_cddlib.so", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 48 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 49 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 50 | deps = [ |
| 51 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 52 | "@pip//glog", |
| 53 | "@pip//scipy", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 54 | ], |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 55 | ) |
Brian Silverman | 9c89c0a | 2016-01-08 01:04:57 -0800 | [diff] [blame] | 56 | |
| 57 | py_test( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 58 | name = "polytope_test", |
| 59 | srcs = [ |
| 60 | "polytope_test.py", |
| 61 | ], |
| 62 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 63 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 64 | deps = [ |
| 65 | ":controls", |
| 66 | ":python_init", |
| 67 | ], |
Brian Silverman | 9c89c0a | 2016-01-08 01:04:57 -0800 | [diff] [blame] | 68 | ) |
Brian Silverman | 69120d7 | 2016-03-08 16:56:16 -0500 | [diff] [blame] | 69 | |
| 70 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 71 | name = "down_estimator", |
| 72 | srcs = [ |
| 73 | "down_estimator.py", |
| 74 | ], |
| 75 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 76 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 77 | deps = [ |
| 78 | ":controls", |
| 79 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 80 | "@pip//matplotlib", |
Austin Schuh | 6647cb2 | 2023-02-21 12:35:25 -0800 | [diff] [blame] | 81 | "@pip//pygobject", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 82 | ], |
Brian Silverman | 69120d7 | 2016-03-08 16:56:16 -0500 | [diff] [blame] | 83 | ) |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 84 | |
| 85 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 86 | name = "drivetrain", |
| 87 | srcs = [ |
| 88 | "drivetrain.py", |
| 89 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 90 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 91 | deps = [ |
| 92 | ":controls", |
| 93 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 94 | "@pip//matplotlib", |
Austin Schuh | 6647cb2 | 2023-02-21 12:35:25 -0800 | [diff] [blame] | 95 | "@pip//pygobject", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 96 | ], |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 97 | ) |
| 98 | |
| 99 | py_library( |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 100 | name = "libspline", |
| 101 | srcs = [ |
| 102 | "libspline.py", |
| 103 | ], |
| 104 | data = [ |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 105 | "//frc971/control_loops/drivetrain:spline.so", |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 106 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 107 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | 50baefc | 2019-01-27 13:26:29 -0800 | [diff] [blame] | 108 | deps = [ |
| 109 | ":python_init", |
| 110 | ], |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 111 | ) |
| 112 | |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 113 | py_test( |
| 114 | name = "lib_spline_test", |
| 115 | srcs = [ |
| 116 | "lib_spline_test.py", |
| 117 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 118 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 119 | deps = [ |
| 120 | ":libspline", |
Alex Perry | 50baefc | 2019-01-27 13:26:29 -0800 | [diff] [blame] | 121 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 122 | "@pip//numpy", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 123 | ], |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 124 | ) |
| 125 | |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 126 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 127 | name = "polydrivetrain", |
| 128 | srcs = [ |
| 129 | "polydrivetrain.py", |
| 130 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 131 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 132 | deps = [ |
| 133 | ":controls", |
| 134 | ":drivetrain", |
| 135 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 136 | "@pip//glog", |
| 137 | "@pip//matplotlib", |
Austin Schuh | 6647cb2 | 2023-02-21 12:35:25 -0800 | [diff] [blame] | 138 | "@pip//pygobject", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 139 | ], |
| 140 | ) |
| 141 | |
| 142 | py_library( |
| 143 | name = "python_init", |
| 144 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 145 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 146 | visibility = ["//visibility:public"], |
| 147 | deps = ["//frc971/control_loops:python_init"], |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 148 | ) |
Austin Schuh | 35d1987 | 2018-11-30 15:50:47 +1100 | [diff] [blame] | 149 | |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 150 | py_library( |
| 151 | name = "linear_system", |
| 152 | srcs = ["linear_system.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 153 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 154 | visibility = ["//visibility:public"], |
| 155 | deps = [ |
| 156 | ":controls", |
| 157 | "//aos/util:py_trapezoid_profile", |
| 158 | "//frc971/control_loops:python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 159 | "@pip//matplotlib", |
Austin Schuh | 6647cb2 | 2023-02-21 12:35:25 -0800 | [diff] [blame] | 160 | "@pip//pygobject", |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 161 | ], |
| 162 | ) |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 163 | |
| 164 | py_library( |
| 165 | name = "angular_system", |
| 166 | srcs = ["angular_system.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 167 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 168 | visibility = ["//visibility:public"], |
| 169 | deps = [ |
| 170 | ":controls", |
| 171 | "//aos/util:py_trapezoid_profile", |
| 172 | "//frc971/control_loops:python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 173 | "@pip//matplotlib", |
Austin Schuh | 6647cb2 | 2023-02-21 12:35:25 -0800 | [diff] [blame] | 174 | "@pip//pygobject", |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 175 | ], |
| 176 | ) |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 177 | |
Ravago Jones | 2e8ac66 | 2023-07-01 22:57:02 -0700 | [diff] [blame] | 178 | py_library( |
| 179 | name = "angular_system_current", |
| 180 | srcs = ["angular_system_current.py"], |
| 181 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 182 | visibility = ["//visibility:public"], |
| 183 | deps = [ |
| 184 | ":controls", |
| 185 | "//aos/util:py_trapezoid_profile", |
| 186 | "//frc971/control_loops:python_init", |
| 187 | "@pip//matplotlib", |
| 188 | "@pip//pygobject", |
| 189 | ], |
| 190 | ) |
| 191 | |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 192 | py_binary( |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 193 | name = "spline_graph", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 194 | srcs = [ |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 195 | "graph.py", |
Ravago Jones | fa8da56 | 2022-07-02 18:10:22 -0700 | [diff] [blame] | 196 | "multispline.py", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 197 | "path_edit.py", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 198 | "spline_drawing.py", |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 199 | "spline_graph.py", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 200 | "spline_writer.py", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 201 | ], |
Ravago Jones | c26b916 | 2021-06-30 20:12:48 -0700 | [diff] [blame] | 202 | data = glob([ |
| 203 | "field_images/*.png", |
| 204 | "field_images/*.svg", |
Maxwell Henderson | 4a18b19 | 2023-03-10 15:04:04 -0800 | [diff] [blame] | 205 | ]) + ["//third_party/y2023/field:pictures"], |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 206 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 207 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 208 | visibility = ["//visibility:public"], |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 209 | deps = [ |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 210 | ":basic_window", |
Philipp Schrader | 2614754 | 2023-01-03 01:44:07 -0800 | [diff] [blame] | 211 | ":color", |
| 212 | ":constants", |
| 213 | ":drawing_constants", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 214 | ":libspline", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 215 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 216 | "@pip//matplotlib", |
| 217 | "@pip//numpy", |
| 218 | "@pip//pygobject", |
| 219 | "@pip//scipy", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 220 | ], |
| 221 | ) |
| 222 | |
| 223 | py_library( |
| 224 | name = "basic_window", |
| 225 | srcs = [ |
| 226 | "basic_window.py", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 227 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 228 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 229 | visibility = ["//visibility:public"], |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 230 | deps = [ |
Philipp Schrader | 2614754 | 2023-01-03 01:44:07 -0800 | [diff] [blame] | 231 | ":constants", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 232 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 233 | "@pip//pygobject", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 234 | ], |
| 235 | ) |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 236 | |
| 237 | py_library( |
| 238 | name = "color", |
| 239 | srcs = [ |
| 240 | "color.py", |
| 241 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 242 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 243 | visibility = ["//visibility:public"], |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 244 | deps = [ |
| 245 | ":python_init", |
| 246 | ], |
| 247 | ) |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 248 | |
| 249 | py_binary( |
Maxwell Henderson | 3424299 | 2024-01-07 12:39:11 -0800 | [diff] [blame] | 250 | name = "flywheel", |
| 251 | srcs = [ |
| 252 | "flywheel.py", |
| 253 | ], |
| 254 | legacy_create_init = False, |
| 255 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 256 | deps = [ |
| 257 | ":python_init", |
| 258 | "//frc971/control_loops/python:controls", |
| 259 | "@pip//matplotlib", |
| 260 | "@pip//pygobject", |
| 261 | ], |
| 262 | ) |
| 263 | |
| 264 | py_binary( |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 265 | name = "static_zeroing_single_dof_profiled_subsystem_test", |
| 266 | srcs = [ |
| 267 | "static_zeroing_single_dof_profiled_subsystem_test.py", |
| 268 | ], |
| 269 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 270 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 271 | deps = [ |
| 272 | ":controls", |
| 273 | ":linear_system", |
| 274 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 275 | "@pip//glog", |
| 276 | "@pip//python_gflags", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 277 | ], |
| 278 | ) |
Maxwell Henderson | 249d6e5 | 2024-01-14 12:58:14 -0800 | [diff] [blame^] | 279 | |
| 280 | py_binary( |
| 281 | name = "flywheel_controller_test", |
| 282 | srcs = [ |
| 283 | "flywheel_controller_test.py", |
| 284 | ], |
| 285 | legacy_create_init = False, |
| 286 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 287 | deps = [ |
| 288 | ":controls", |
| 289 | ":flywheel", |
| 290 | ":python_init", |
| 291 | "@pip//glog", |
| 292 | "@pip//python_gflags", |
| 293 | ], |
| 294 | ) |