blob: 49393adf6ad7a58429b7e5e384969c1c3c5af667 [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"],
Austin Schuh7b1e9df2018-12-19 18:04:41 +110041 visibility = ["//visibility:public"],
Brian Silverman6470f442018-08-05 12:08:16 -070042 deps = [
Austin Schuh7b1e9df2018-12-19 18:04:41 +110043 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070044 "//external:python-gflags",
45 "//external:python-glog",
46 "//frc971/control_loops/python:controls",
Austin Schuh7b1e9df2018-12-19 18:04:41 +110047 "//frc971/control_loops/python:drivetrain",
48 "//frc971/control_loops/python:polydrivetrain",
Brian Silverman6470f442018-08-05 12:08:16 -070049 ],
Comran Morshed9a9948c2016-01-16 15:58:04 +000050)
Comran Morshed2a97bc82016-01-16 17:27:01 +000051
52py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070053 name = "shooter",
54 srcs = [
55 "shooter.py",
56 ],
57 legacy_create_init = False,
58 restricted_to = ["//tools:k8"],
59 deps = [
60 ":python_init",
61 "//external:python-gflags",
62 "//external:python-glog",
63 "//frc971/control_loops/python:controls",
64 "@matplotlib",
65 ],
Comran Morshed52f9a1f2016-02-03 19:53:50 +000066)
67
68py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070069 name = "intake",
70 srcs = [
71 "intake.py",
72 ],
73 legacy_create_init = False,
74 restricted_to = ["//tools:k8"],
75 deps = [
76 ":python_init",
John Park33858a32018-09-28 23:05:48 -070077 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -070078 "//external:python-gflags",
79 "//external:python-glog",
80 "//frc971/control_loops/python:controls",
81 "@matplotlib",
82 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +000083)
84
85py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070086 name = "shoulder",
87 srcs = [
88 "shoulder.py",
89 ],
90 legacy_create_init = False,
91 restricted_to = ["//tools:k8"],
92 deps = [
93 ":python_init",
John Park33858a32018-09-28 23:05:48 -070094 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -070095 "//external:python-gflags",
96 "//external:python-glog",
97 "//frc971/control_loops/python:controls",
98 "@matplotlib",
99 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +0000100)
101
102py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700103 name = "wrist",
104 srcs = [
105 "wrist.py",
106 ],
107 legacy_create_init = False,
108 restricted_to = ["//tools:k8"],
109 deps = [
110 ":python_init",
John Park33858a32018-09-28 23:05:48 -0700111 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700112 "//external:python-gflags",
113 "//external:python-glog",
114 "//frc971/control_loops/python:controls",
115 "@matplotlib",
116 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800117)
118
119py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700120 name = "wrist_lib",
121 srcs = [
122 "wrist.py",
123 ],
124 restricted_to = ["//tools:k8"],
125 deps = [
John Park33858a32018-09-28 23:05:48 -0700126 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700127 "//external:python-gflags",
128 "//external:python-glog",
129 "//frc971/control_loops/python:controls",
130 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800131)
132
133py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700134 name = "shoulder_lib",
135 srcs = [
136 "shoulder.py",
137 ],
138 restricted_to = ["//tools:k8"],
139 deps = [
John Park33858a32018-09-28 23:05:48 -0700140 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700141 "//external:python-gflags",
142 "//external:python-glog",
143 "//frc971/control_loops/python:controls",
144 "@matplotlib",
145 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800146)
147
148py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700149 name = "arm_lib",
150 srcs = [
151 "arm.py",
152 ],
153 restricted_to = ["//tools:k8"],
154 deps = [
155 ":shoulder_lib",
156 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700157 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700158 "//external:python-gflags",
159 "//external:python-glog",
160 "//frc971/control_loops/python:controls",
161 "@matplotlib",
162 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800163)
Brian Silverman6470f442018-08-05 12:08:16 -0700164
Austin Schuha88c4072016-02-06 14:31:03 -0800165py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700166 name = "arm",
167 srcs = [
168 "arm.py",
169 ],
170 legacy_create_init = False,
171 restricted_to = ["//tools:k8"],
172 deps = [
173 ":python_init",
174 ":shoulder_lib",
175 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700176 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700177 "//external:python-gflags",
178 "//external:python-glog",
179 "//frc971/control_loops/python:controls",
180 ],
181)
182
183py_library(
184 name = "python_init",
185 srcs = ["__init__.py"],
186 visibility = ["//visibility:public"],
187 deps = ["//y2016/control_loops:python_init"],
Comran Morshed2a97bc82016-01-16 17:27:01 +0000188)