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