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 = [ |
| 29 | "//external:python-gflags", |
| 30 | "//external:python-glog", |
| 31 | "//frc971/control_loops/python:controls", |
Austin Schuh | 085eab9 | 2020-11-26 13:54:51 -0800 | [diff] [blame] | 32 | "@matplotlib_repo//:matplotlib3", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 33 | ], |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 34 | ) |
| 35 | |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 36 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 37 | name = "controls", |
| 38 | srcs = [ |
| 39 | "cim.py", |
| 40 | "control_loop.py", |
| 41 | "controls.py", |
| 42 | "libcdd.py", |
| 43 | "polytope.py", |
| 44 | ], |
| 45 | data = [ |
| 46 | "//third_party/cddlib:_cddlib.so", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 47 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 48 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 49 | deps = [ |
| 50 | ":python_init", |
| 51 | "//external:python-glog", |
Philipp Schrader | 092a62d | 2021-12-05 23:15:05 -0800 | [diff] [blame] | 52 | "@python_repo//:scipy", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 53 | ], |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 54 | ) |
Brian Silverman | 9c89c0a | 2016-01-08 01:04:57 -0800 | [diff] [blame] | 55 | |
| 56 | py_test( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 57 | name = "polytope_test", |
| 58 | srcs = [ |
| 59 | "polytope_test.py", |
| 60 | ], |
| 61 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 62 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 63 | deps = [ |
| 64 | ":controls", |
| 65 | ":python_init", |
| 66 | ], |
Brian Silverman | 9c89c0a | 2016-01-08 01:04:57 -0800 | [diff] [blame] | 67 | ) |
Brian Silverman | 69120d7 | 2016-03-08 16:56:16 -0500 | [diff] [blame] | 68 | |
| 69 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 70 | name = "down_estimator", |
| 71 | srcs = [ |
| 72 | "down_estimator.py", |
| 73 | ], |
| 74 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 75 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 76 | deps = [ |
| 77 | ":controls", |
| 78 | ":python_init", |
Austin Schuh | 085eab9 | 2020-11-26 13:54:51 -0800 | [diff] [blame] | 79 | "@matplotlib_repo//:matplotlib3", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 80 | ], |
Brian Silverman | 69120d7 | 2016-03-08 16:56:16 -0500 | [diff] [blame] | 81 | ) |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 82 | |
| 83 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 84 | name = "drivetrain", |
| 85 | srcs = [ |
| 86 | "drivetrain.py", |
| 87 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 88 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 89 | deps = [ |
| 90 | ":controls", |
| 91 | ":python_init", |
Austin Schuh | 085eab9 | 2020-11-26 13:54:51 -0800 | [diff] [blame] | 92 | "@matplotlib_repo//:matplotlib3", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 93 | ], |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 94 | ) |
| 95 | |
| 96 | py_library( |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 97 | name = "libspline", |
| 98 | srcs = [ |
| 99 | "libspline.py", |
| 100 | ], |
| 101 | data = [ |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 102 | "//frc971/control_loops/drivetrain:spline.so", |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 103 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 104 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | 50baefc | 2019-01-27 13:26:29 -0800 | [diff] [blame] | 105 | deps = [ |
| 106 | ":python_init", |
| 107 | ], |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 108 | ) |
| 109 | |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 110 | py_test( |
| 111 | name = "lib_spline_test", |
| 112 | srcs = [ |
| 113 | "lib_spline_test.py", |
| 114 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 115 | target_compatible_with = ["@platforms//os:linux"], |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 116 | deps = [ |
| 117 | ":libspline", |
Alex Perry | 50baefc | 2019-01-27 13:26:29 -0800 | [diff] [blame] | 118 | ":python_init", |
Philipp Schrader | 092a62d | 2021-12-05 23:15:05 -0800 | [diff] [blame] | 119 | "@python_repo//:numpy", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 120 | ], |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 121 | ) |
| 122 | |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 123 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 124 | name = "polydrivetrain", |
| 125 | srcs = [ |
| 126 | "polydrivetrain.py", |
| 127 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 128 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 129 | deps = [ |
| 130 | ":controls", |
| 131 | ":drivetrain", |
| 132 | ":python_init", |
| 133 | "//external:python-glog", |
Austin Schuh | cd1f725 | 2021-09-24 21:11:43 -0700 | [diff] [blame] | 134 | "@matplotlib_repo//:matplotlib3", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 135 | ], |
| 136 | ) |
| 137 | |
| 138 | py_library( |
| 139 | name = "python_init", |
| 140 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 141 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 142 | visibility = ["//visibility:public"], |
| 143 | deps = ["//frc971/control_loops:python_init"], |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 144 | ) |
Austin Schuh | 35d1987 | 2018-11-30 15:50:47 +1100 | [diff] [blame] | 145 | |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 146 | py_library( |
| 147 | name = "linear_system", |
| 148 | srcs = ["linear_system.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 149 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 150 | visibility = ["//visibility:public"], |
| 151 | deps = [ |
| 152 | ":controls", |
| 153 | "//aos/util:py_trapezoid_profile", |
| 154 | "//frc971/control_loops:python_init", |
Austin Schuh | 085eab9 | 2020-11-26 13:54:51 -0800 | [diff] [blame] | 155 | "@matplotlib_repo//:matplotlib3", |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 156 | ], |
| 157 | ) |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 158 | |
| 159 | py_library( |
| 160 | name = "angular_system", |
| 161 | srcs = ["angular_system.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 162 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 163 | visibility = ["//visibility:public"], |
| 164 | deps = [ |
| 165 | ":controls", |
| 166 | "//aos/util:py_trapezoid_profile", |
| 167 | "//frc971/control_loops:python_init", |
Austin Schuh | 085eab9 | 2020-11-26 13:54:51 -0800 | [diff] [blame] | 168 | "@matplotlib_repo//:matplotlib3", |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 169 | ], |
| 170 | ) |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 171 | |
| 172 | py_binary( |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 173 | name = "spline_graph", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 174 | srcs = [ |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 175 | "graph.py", |
Ravago Jones | fa8da56 | 2022-07-02 18:10:22 -0700 | [diff] [blame] | 176 | "multispline.py", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 177 | "path_edit.py", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 178 | "spline_drawing.py", |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 179 | "spline_graph.py", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 180 | "spline_writer.py", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 181 | ], |
Ravago Jones | c26b916 | 2021-06-30 20:12:48 -0700 | [diff] [blame] | 182 | data = glob([ |
| 183 | "field_images/*.png", |
| 184 | "field_images/*.svg", |
| 185 | ]), |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 186 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 187 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 188 | visibility = ["//visibility:public"], |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 189 | deps = [ |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 190 | ":basic_window", |
Philipp Schrader | 2614754 | 2023-01-03 01:44:07 -0800 | [diff] [blame^] | 191 | ":color", |
| 192 | ":constants", |
| 193 | ":drawing_constants", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 194 | ":libspline", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 195 | ":python_init", |
Austin Schuh | 085eab9 | 2020-11-26 13:54:51 -0800 | [diff] [blame] | 196 | "@matplotlib_repo//:matplotlib3", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 197 | "@python_gtk", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 198 | ], |
| 199 | ) |
| 200 | |
| 201 | py_library( |
| 202 | name = "basic_window", |
| 203 | srcs = [ |
| 204 | "basic_window.py", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 205 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 206 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 207 | visibility = ["//visibility:public"], |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 208 | deps = [ |
Philipp Schrader | 2614754 | 2023-01-03 01:44:07 -0800 | [diff] [blame^] | 209 | ":constants", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 210 | ":python_init", |
| 211 | "@python_gtk", |
| 212 | ], |
| 213 | ) |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 214 | |
| 215 | py_library( |
| 216 | name = "color", |
| 217 | srcs = [ |
| 218 | "color.py", |
| 219 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 220 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 221 | visibility = ["//visibility:public"], |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 222 | deps = [ |
| 223 | ":python_init", |
| 224 | ], |
| 225 | ) |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 226 | |
| 227 | py_binary( |
| 228 | name = "static_zeroing_single_dof_profiled_subsystem_test", |
| 229 | srcs = [ |
| 230 | "static_zeroing_single_dof_profiled_subsystem_test.py", |
| 231 | ], |
| 232 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 233 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 234 | deps = [ |
| 235 | ":controls", |
| 236 | ":linear_system", |
| 237 | ":python_init", |
| 238 | "//external:python-gflags", |
| 239 | "//external:python-glog", |
| 240 | ], |
| 241 | ) |