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 | |
| 178 | py_binary( |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 179 | name = "spline_graph", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 180 | srcs = [ |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 181 | "graph.py", |
Ravago Jones | fa8da56 | 2022-07-02 18:10:22 -0700 | [diff] [blame] | 182 | "multispline.py", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 183 | "path_edit.py", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 184 | "spline_drawing.py", |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 185 | "spline_graph.py", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 186 | "spline_writer.py", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 187 | ], |
Ravago Jones | c26b916 | 2021-06-30 20:12:48 -0700 | [diff] [blame] | 188 | data = glob([ |
| 189 | "field_images/*.png", |
| 190 | "field_images/*.svg", |
Maxwell Henderson | 4a18b19 | 2023-03-10 15:04:04 -0800 | [diff] [blame^] | 191 | ]) + ["//third_party/y2023/field:pictures"], |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 192 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 193 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 194 | visibility = ["//visibility:public"], |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 195 | deps = [ |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 196 | ":basic_window", |
Philipp Schrader | 2614754 | 2023-01-03 01:44:07 -0800 | [diff] [blame] | 197 | ":color", |
| 198 | ":constants", |
| 199 | ":drawing_constants", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 200 | ":libspline", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 201 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 202 | "@pip//matplotlib", |
| 203 | "@pip//numpy", |
| 204 | "@pip//pygobject", |
| 205 | "@pip//scipy", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 206 | ], |
| 207 | ) |
| 208 | |
| 209 | py_library( |
| 210 | name = "basic_window", |
| 211 | srcs = [ |
| 212 | "basic_window.py", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 213 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 214 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 215 | visibility = ["//visibility:public"], |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 216 | deps = [ |
Philipp Schrader | 2614754 | 2023-01-03 01:44:07 -0800 | [diff] [blame] | 217 | ":constants", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 218 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 219 | "@pip//pygobject", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 220 | ], |
| 221 | ) |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 222 | |
| 223 | py_library( |
| 224 | name = "color", |
| 225 | srcs = [ |
| 226 | "color.py", |
| 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"], |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 230 | deps = [ |
| 231 | ":python_init", |
| 232 | ], |
| 233 | ) |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 234 | |
| 235 | py_binary( |
| 236 | name = "static_zeroing_single_dof_profiled_subsystem_test", |
| 237 | srcs = [ |
| 238 | "static_zeroing_single_dof_profiled_subsystem_test.py", |
| 239 | ], |
| 240 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 241 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 242 | deps = [ |
| 243 | ":controls", |
| 244 | ":linear_system", |
| 245 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 246 | "@pip//glog", |
| 247 | "@pip//python_gflags", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 248 | ], |
| 249 | ) |