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", |
| 29 | "@python_repo//:scipy", |
| 30 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 31 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 32 | deps = [ |
| 33 | ":python_init", |
| 34 | "//external:python-glog", |
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", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 101 | ], |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 102 | ) |
| 103 | |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 104 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 105 | name = "polydrivetrain", |
| 106 | srcs = [ |
| 107 | "polydrivetrain.py", |
| 108 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 109 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 110 | deps = [ |
| 111 | ":controls", |
| 112 | ":drivetrain", |
| 113 | ":python_init", |
| 114 | "//external:python-glog", |
| 115 | ], |
| 116 | ) |
| 117 | |
| 118 | py_library( |
| 119 | name = "python_init", |
| 120 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 121 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 122 | visibility = ["//visibility:public"], |
| 123 | deps = ["//frc971/control_loops:python_init"], |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 124 | ) |
Austin Schuh | 35d1987 | 2018-11-30 15:50:47 +1100 | [diff] [blame] | 125 | |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 126 | py_library( |
| 127 | name = "linear_system", |
| 128 | srcs = ["linear_system.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 129 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 130 | visibility = ["//visibility:public"], |
| 131 | deps = [ |
| 132 | ":controls", |
| 133 | "//aos/util:py_trapezoid_profile", |
| 134 | "//frc971/control_loops:python_init", |
Austin Schuh | 085eab9 | 2020-11-26 13:54:51 -0800 | [diff] [blame] | 135 | "@matplotlib_repo//:matplotlib3", |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 136 | ], |
| 137 | ) |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 138 | |
| 139 | py_library( |
| 140 | name = "angular_system", |
| 141 | srcs = ["angular_system.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 142 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 143 | visibility = ["//visibility:public"], |
| 144 | deps = [ |
| 145 | ":controls", |
| 146 | "//aos/util:py_trapezoid_profile", |
| 147 | "//frc971/control_loops:python_init", |
Austin Schuh | 085eab9 | 2020-11-26 13:54:51 -0800 | [diff] [blame] | 148 | "@matplotlib_repo//:matplotlib3", |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 149 | ], |
| 150 | ) |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 151 | |
| 152 | py_binary( |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 153 | name = "spline_graph", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 154 | srcs = [ |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 155 | "color.py", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 156 | "graph.py", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 157 | "path_edit.py", |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 158 | "points.py", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 159 | "spline_drawing.py", |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 160 | "spline_graph.py", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 161 | "spline_writer.py", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 162 | ], |
Ravago Jones | c26b916 | 2021-06-30 20:12:48 -0700 | [diff] [blame^] | 163 | data = glob([ |
| 164 | "field_images/*.png", |
| 165 | "field_images/*.svg", |
| 166 | ]), |
John Park | 91e6973 | 2019-03-03 13:12:43 -0800 | [diff] [blame] | 167 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 168 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 169 | visibility = ["//visibility:public"], |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 170 | deps = [ |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 171 | ":basic_window", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 172 | ":libspline", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 173 | ":python_init", |
Austin Schuh | 085eab9 | 2020-11-26 13:54:51 -0800 | [diff] [blame] | 174 | "@matplotlib_repo//:matplotlib3", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 175 | "@python_gtk", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 176 | ], |
| 177 | ) |
| 178 | |
| 179 | py_library( |
| 180 | name = "basic_window", |
| 181 | srcs = [ |
| 182 | "basic_window.py", |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 183 | "color.py", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 184 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 185 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 186 | visibility = ["//visibility:public"], |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 187 | deps = [ |
| 188 | ":python_init", |
| 189 | "@python_gtk", |
| 190 | ], |
| 191 | ) |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 192 | |
| 193 | py_library( |
| 194 | name = "color", |
| 195 | srcs = [ |
| 196 | "color.py", |
| 197 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 198 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 199 | visibility = ["//visibility:public"], |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 200 | deps = [ |
| 201 | ":python_init", |
| 202 | ], |
| 203 | ) |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 204 | |
| 205 | py_binary( |
| 206 | name = "static_zeroing_single_dof_profiled_subsystem_test", |
| 207 | srcs = [ |
| 208 | "static_zeroing_single_dof_profiled_subsystem_test.py", |
| 209 | ], |
| 210 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 211 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Tyler Chatow | 1258156 | 2019-01-26 20:42:42 -0800 | [diff] [blame] | 212 | deps = [ |
| 213 | ":controls", |
| 214 | ":linear_system", |
| 215 | ":python_init", |
| 216 | "//external:python-gflags", |
| 217 | "//external:python-glog", |
| 218 | ], |
| 219 | ) |