blob: 08a34e8c57f234309f0caf8695c8f8957e01e16e [file] [log] [blame]
Brian Silverman6470f442018-08-05 12:08:16 -07001package(default_visibility = ["//y2016:__subpackages__"])
Comran Morshed9a9948c2016-01-16 15:58:04 +00002
3py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -07004 name = "drivetrain",
5 srcs = [
6 "drivetrain.py",
7 ],
8 legacy_create_init = False,
9 restricted_to = ["//tools:k8"],
10 deps = [
11 ":python_init",
12 "//external:python-gflags",
13 "//external:python-glog",
14 "//frc971/control_loops/python:drivetrain",
15 ],
Comran Morshed9a9948c2016-01-16 15:58:04 +000016)
17
18py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070019 name = "polydrivetrain",
20 srcs = [
21 "drivetrain.py",
22 "polydrivetrain.py",
23 ],
24 legacy_create_init = False,
25 restricted_to = ["//tools:k8"],
26 deps = [
27 ":python_init",
28 "//external:python-gflags",
29 "//external:python-glog",
30 "//frc971/control_loops/python:polydrivetrain",
31 ],
Comran Morshed9a9948c2016-01-16 15:58:04 +000032)
33
34py_library(
Brian Silverman6470f442018-08-05 12:08:16 -070035 name = "polydrivetrain_lib",
36 srcs = [
37 "drivetrain.py",
38 "polydrivetrain.py",
39 ],
40 restricted_to = ["//tools:k8"],
41 deps = [
42 "//external:python-gflags",
43 "//external:python-glog",
44 "//frc971/control_loops/python:controls",
45 ],
Comran Morshed9a9948c2016-01-16 15:58:04 +000046)
Comran Morshed2a97bc82016-01-16 17:27:01 +000047
48py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070049 name = "shooter",
50 srcs = [
51 "shooter.py",
52 ],
53 legacy_create_init = False,
54 restricted_to = ["//tools:k8"],
55 deps = [
56 ":python_init",
57 "//external:python-gflags",
58 "//external:python-glog",
59 "//frc971/control_loops/python:controls",
60 "@matplotlib",
61 ],
Comran Morshed52f9a1f2016-02-03 19:53:50 +000062)
63
64py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070065 name = "intake",
66 srcs = [
67 "intake.py",
68 ],
69 legacy_create_init = False,
70 restricted_to = ["//tools:k8"],
71 deps = [
72 ":python_init",
John Park33858a32018-09-28 23:05:48 -070073 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -070074 "//external:python-gflags",
75 "//external:python-glog",
76 "//frc971/control_loops/python:controls",
77 "@matplotlib",
78 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +000079)
80
81py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070082 name = "shoulder",
83 srcs = [
84 "shoulder.py",
85 ],
86 legacy_create_init = False,
87 restricted_to = ["//tools:k8"],
88 deps = [
89 ":python_init",
John Park33858a32018-09-28 23:05:48 -070090 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -070091 "//external:python-gflags",
92 "//external:python-glog",
93 "//frc971/control_loops/python:controls",
94 "@matplotlib",
95 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +000096)
97
98py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070099 name = "wrist",
100 srcs = [
101 "wrist.py",
102 ],
103 legacy_create_init = False,
104 restricted_to = ["//tools:k8"],
105 deps = [
106 ":python_init",
John Park33858a32018-09-28 23:05:48 -0700107 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700108 "//external:python-gflags",
109 "//external:python-glog",
110 "//frc971/control_loops/python:controls",
111 "@matplotlib",
112 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800113)
114
115py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700116 name = "wrist_lib",
117 srcs = [
118 "wrist.py",
119 ],
120 restricted_to = ["//tools:k8"],
121 deps = [
John Park33858a32018-09-28 23:05:48 -0700122 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700123 "//external:python-gflags",
124 "//external:python-glog",
125 "//frc971/control_loops/python:controls",
126 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800127)
128
129py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700130 name = "shoulder_lib",
131 srcs = [
132 "shoulder.py",
133 ],
134 restricted_to = ["//tools:k8"],
135 deps = [
John Park33858a32018-09-28 23:05:48 -0700136 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700137 "//external:python-gflags",
138 "//external:python-glog",
139 "//frc971/control_loops/python:controls",
140 "@matplotlib",
141 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800142)
143
144py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700145 name = "arm_lib",
146 srcs = [
147 "arm.py",
148 ],
149 restricted_to = ["//tools:k8"],
150 deps = [
151 ":shoulder_lib",
152 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700153 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700154 "//external:python-gflags",
155 "//external:python-glog",
156 "//frc971/control_loops/python:controls",
157 "@matplotlib",
158 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800159)
Brian Silverman6470f442018-08-05 12:08:16 -0700160
Austin Schuha88c4072016-02-06 14:31:03 -0800161py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700162 name = "arm",
163 srcs = [
164 "arm.py",
165 ],
166 legacy_create_init = False,
167 restricted_to = ["//tools:k8"],
168 deps = [
169 ":python_init",
170 ":shoulder_lib",
171 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700172 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700173 "//external:python-gflags",
174 "//external:python-glog",
175 "//frc971/control_loops/python:controls",
176 ],
177)
178
179py_library(
180 name = "python_init",
181 srcs = ["__init__.py"],
182 visibility = ["//visibility:public"],
183 deps = ["//y2016/control_loops:python_init"],
Comran Morshed2a97bc82016-01-16 17:27:01 +0000184)