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