blob: bedd763bb03aa64cde3700f85ce3fb8bdd51ffba [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",
14 "@matplotlib",
15 ],
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",
62 "@matplotlib",
63 ],
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",
75 "@matplotlib",
76 ],
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 = [
85 "//frc971/control_loops/drivetrain:spline.so"
86 ],
87)
88
89py_library(
Brian Silverman6470f442018-08-05 12:08:16 -070090 name = "polydrivetrain",
91 srcs = [
92 "polydrivetrain.py",
93 ],
94 restricted_to = ["//tools:k8"],
95 deps = [
96 ":controls",
97 ":drivetrain",
98 ":python_init",
99 "//external:python-glog",
100 ],
101)
102
103py_library(
104 name = "python_init",
105 srcs = ["__init__.py"],
106 visibility = ["//visibility:public"],
107 deps = ["//frc971/control_loops:python_init"],
Campbell Crowley33e0e3d2017-12-27 17:55:40 -0800108)
Austin Schuh35d19872018-11-30 15:50:47 +1100109
110py_binary(
111 name = "spline",
112 srcs = [
113 "spline.py",
114 ],
115 legacy_create_init = False,
116 restricted_to = ["//tools:k8"],
117 deps = [
118 "//external:python-gflags",
119 "//external:python-glog",
120 "//frc971/control_loops/python:controls",
Austin Schuh44aa9142018-12-03 21:07:23 +1100121 "//y2018/control_loops/python:polydrivetrain_lib",
Austin Schuh35d19872018-11-30 15:50:47 +1100122 "@matplotlib",
123 ],
124)