blob: 50764c73e912053db04f6519ba820e579320eddc [file] [log] [blame]
Brian Silverman6470f442018-08-05 12:08:16 -07001package(default_visibility = ["//visibility:public"])
Austin Schuh572ff402015-11-08 12:17:50 -08002
Brian Silverman6260c092018-01-14 15:21:36 -08003py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -07004 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 Kuszmaul910f92b2020-01-01 15:30:38 -080014 "@matplotlib_repo//:matplotlib2.7",
Brian Silverman6470f442018-08-05 12:08:16 -070015 ],
Brian Silverman6260c092018-01-14 15:21:36 -080016)
17
Austin Schuh572ff402015-11-08 12:17:50 -080018py_library(
Brian Silverman6470f442018-08-05 12:08:16 -070019 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 Schuh572ff402015-11-08 12:17:50 -080037)
Brian Silverman9c89c0a2016-01-08 01:04:57 -080038
39py_test(
Brian Silverman6470f442018-08-05 12:08:16 -070040 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 Silverman9c89c0a2016-01-08 01:04:57 -080050)
Brian Silverman69120d72016-03-08 16:56:16 -050051
52py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070053 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 Kuszmaul910f92b2020-01-01 15:30:38 -080062 "@matplotlib_repo//:matplotlib2.7",
Brian Silverman6470f442018-08-05 12:08:16 -070063 ],
Brian Silverman69120d72016-03-08 16:56:16 -050064)
Campbell Crowley33e0e3d2017-12-27 17:55:40 -080065
66py_library(
Brian Silverman6470f442018-08-05 12:08:16 -070067 name = "drivetrain",
68 srcs = [
69 "drivetrain.py",
70 ],
71 restricted_to = ["//tools:k8"],
72 deps = [
73 ":controls",
74 ":python_init",
James Kuszmaul910f92b2020-01-01 15:30:38 -080075 "@matplotlib_repo//:matplotlib2.7",
Brian Silverman6470f442018-08-05 12:08:16 -070076 ],
Campbell Crowley33e0e3d2017-12-27 17:55:40 -080077)
78
79py_library(
Alex Perry20762632019-01-21 17:48:02 -050080 name = "libspline",
81 srcs = [
82 "libspline.py",
83 ],
84 data = [
Alex Perrya60da442019-01-21 19:00:27 -050085 "//frc971/control_loops/drivetrain:spline.so",
Alex Perry20762632019-01-21 17:48:02 -050086 ],
Alex Perry50baefc2019-01-27 13:26:29 -080087 deps = [
88 ":python_init",
89 ],
Alex Perry20762632019-01-21 17:48:02 -050090)
91
Alex Perrya60da442019-01-21 19:00:27 -050092py_test(
93 name = "lib_spline_test",
94 srcs = [
95 "lib_spline_test.py",
96 ],
97 deps = [
98 ":libspline",
Alex Perry50baefc2019-01-27 13:26:29 -080099 ":python_init",
Tyler Chatow12581562019-01-26 20:42:42 -0800100 ],
Alex Perrya60da442019-01-21 19:00:27 -0500101)
102
Alex Perry20762632019-01-21 17:48:02 -0500103py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700104 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
117py_library(
118 name = "python_init",
119 srcs = ["__init__.py"],
120 visibility = ["//visibility:public"],
121 deps = ["//frc971/control_loops:python_init"],
Campbell Crowley33e0e3d2017-12-27 17:55:40 -0800122)
Austin Schuh35d19872018-11-30 15:50:47 +1100123
124py_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 Schuh7b1e9df2018-12-19 18:04:41 +1100135 "//y2016/control_loops/python:polydrivetrain_lib",
James Kuszmaul910f92b2020-01-01 15:30:38 -0800136 "@matplotlib_repo//:matplotlib2.7",
Austin Schuh35d19872018-11-30 15:50:47 +1100137 ],
138)
Austin Schuhb5d302f2019-01-20 20:51:19 -0800139
140py_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 Kuszmaul910f92b2020-01-01 15:30:38 -0800149 "@matplotlib_repo//:matplotlib2.7",
Austin Schuhb5d302f2019-01-20 20:51:19 -0800150 ],
151)
Austin Schuh2e554032019-01-21 15:07:27 -0800152
153py_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 Kuszmaul910f92b2020-01-01 15:30:38 -0800162 "@matplotlib_repo//:matplotlib2.7",
Austin Schuh2e554032019-01-21 15:07:27 -0800163 ],
164)
johnp55310b82019-01-26 18:26:24 -0800165
166py_binary(
167 name = "path_edit",
168 srcs = [
Andrew Runke6842bf92019-01-26 15:38:25 -0800169 "basic_window.py",
170 "color.py",
Tyler Chatow12581562019-01-26 20:42:42 -0800171 "path_edit.py",
johnp55310b82019-01-26 18:26:24 -0800172 ],
johnp55310b82019-01-26 18:26:24 -0800173 restricted_to = ["//tools:k8"],
Tyler Chatow12581562019-01-26 20:42:42 -0800174 visibility = ["//visibility:public"],
johnp55310b82019-01-26 18:26:24 -0800175 deps = [
johnp55310b82019-01-26 18:26:24 -0800176 ":libspline",
Tyler Chatow12581562019-01-26 20:42:42 -0800177 ":python_init",
johnp55310b82019-01-26 18:26:24 -0800178 "@python_gtk",
johnp55310b82019-01-26 18:26:24 -0800179 ],
180)
181
182py_library(
183 name = "basic_window",
184 srcs = [
185 "basic_window.py",
Tyler Chatow12581562019-01-26 20:42:42 -0800186 "color.py",
johnp55310b82019-01-26 18:26:24 -0800187 ],
188 restricted_to = ["//tools:k8"],
Tyler Chatow12581562019-01-26 20:42:42 -0800189 visibility = ["//visibility:public"],
johnp55310b82019-01-26 18:26:24 -0800190 deps = [
191 ":python_init",
192 "@python_gtk",
193 ],
194)
Andrew Runke6842bf92019-01-26 15:38:25 -0800195
196py_library(
197 name = "color",
198 srcs = [
199 "color.py",
200 ],
Andrew Runke6842bf92019-01-26 15:38:25 -0800201 restricted_to = ["//tools:k8"],
Tyler Chatow12581562019-01-26 20:42:42 -0800202 visibility = ["//visibility:public"],
Andrew Runke6842bf92019-01-26 15:38:25 -0800203 deps = [
204 ":python_init",
205 ],
206)
Tyler Chatow12581562019-01-26 20:42:42 -0800207
208py_binary(
209 name = "static_zeroing_single_dof_profiled_subsystem_test",
210 srcs = [
211 "static_zeroing_single_dof_profiled_subsystem_test.py",
212 ],
213 legacy_create_init = False,
214 restricted_to = ["//tools:k8"],
215 deps = [
216 ":controls",
217 ":linear_system",
218 ":python_init",
219 "//external:python-gflags",
220 "//external:python-glog",
221 ],
222)