blob: 93212d8c90fd1439ded68ae2156c75e2d2ee6380 [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",
Brian Silverman6470f442018-08-05 12:08:16 -070073 "//external:python-gflags",
74 "//external:python-glog",
Austin Schuh2e554032019-01-21 15:07:27 -080075 "//frc971/control_loops/python:angular_system",
Brian Silverman6470f442018-08-05 12:08:16 -070076 "//frc971/control_loops/python:controls",
Brian Silverman6470f442018-08-05 12:08:16 -070077 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +000078)
79
80py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070081 name = "shoulder",
82 srcs = [
83 "shoulder.py",
84 ],
85 legacy_create_init = False,
86 restricted_to = ["//tools:k8"],
87 deps = [
88 ":python_init",
John Park33858a32018-09-28 23:05:48 -070089 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -070090 "//external:python-gflags",
91 "//external:python-glog",
92 "//frc971/control_loops/python:controls",
93 "@matplotlib",
94 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +000095)
96
97py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070098 name = "wrist",
99 srcs = [
100 "wrist.py",
101 ],
102 legacy_create_init = False,
103 restricted_to = ["//tools:k8"],
104 deps = [
105 ":python_init",
John Park33858a32018-09-28 23:05:48 -0700106 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700107 "//external:python-gflags",
108 "//external:python-glog",
109 "//frc971/control_loops/python:controls",
110 "@matplotlib",
111 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800112)
113
114py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700115 name = "wrist_lib",
116 srcs = [
117 "wrist.py",
118 ],
119 restricted_to = ["//tools:k8"],
120 deps = [
John Park33858a32018-09-28 23:05:48 -0700121 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700122 "//external:python-gflags",
123 "//external:python-glog",
124 "//frc971/control_loops/python:controls",
125 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800126)
127
128py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700129 name = "shoulder_lib",
130 srcs = [
131 "shoulder.py",
132 ],
133 restricted_to = ["//tools:k8"],
134 deps = [
John Park33858a32018-09-28 23:05:48 -0700135 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700136 "//external:python-gflags",
137 "//external:python-glog",
138 "//frc971/control_loops/python:controls",
139 "@matplotlib",
140 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800141)
142
143py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700144 name = "arm_lib",
145 srcs = [
146 "arm.py",
147 ],
148 restricted_to = ["//tools:k8"],
149 deps = [
150 ":shoulder_lib",
151 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700152 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700153 "//external:python-gflags",
154 "//external:python-glog",
155 "//frc971/control_loops/python:controls",
156 "@matplotlib",
157 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800158)
Brian Silverman6470f442018-08-05 12:08:16 -0700159
Austin Schuha88c4072016-02-06 14:31:03 -0800160py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700161 name = "arm",
162 srcs = [
163 "arm.py",
164 ],
165 legacy_create_init = False,
166 restricted_to = ["//tools:k8"],
167 deps = [
168 ":python_init",
169 ":shoulder_lib",
170 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700171 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700172 "//external:python-gflags",
173 "//external:python-glog",
174 "//frc971/control_loops/python:controls",
175 ],
176)
177
178py_library(
179 name = "python_init",
180 srcs = ["__init__.py"],
181 visibility = ["//visibility:public"],
182 deps = ["//y2016/control_loops:python_init"],
Comran Morshed2a97bc82016-01-16 17:27:01 +0000183)