blob: 65964fde64d14d4b65990529e4782d6064e5aaf3 [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",
James Kuszmaul910f92b2020-01-01 15:30:38 -080064 "@matplotlib_repo//:matplotlib2.7",
Brian Silverman6470f442018-08-05 12:08:16 -070065 ],
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",
Brian Silverman6470f442018-08-05 12:08:16 -070077 "//external:python-gflags",
78 "//external:python-glog",
Austin Schuh2e554032019-01-21 15:07:27 -080079 "//frc971/control_loops/python:angular_system",
Brian Silverman6470f442018-08-05 12:08:16 -070080 "//frc971/control_loops/python:controls",
Brian Silverman6470f442018-08-05 12:08:16 -070081 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +000082)
83
84py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070085 name = "shoulder",
86 srcs = [
87 "shoulder.py",
88 ],
89 legacy_create_init = False,
90 restricted_to = ["//tools:k8"],
91 deps = [
92 ":python_init",
John Park33858a32018-09-28 23:05:48 -070093 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -070094 "//external:python-gflags",
95 "//external:python-glog",
96 "//frc971/control_loops/python:controls",
James Kuszmaul910f92b2020-01-01 15:30:38 -080097 "@matplotlib_repo//:matplotlib2.7",
Brian Silverman6470f442018-08-05 12:08:16 -070098 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +000099)
100
101py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700102 name = "wrist",
103 srcs = [
104 "wrist.py",
105 ],
106 legacy_create_init = False,
107 restricted_to = ["//tools:k8"],
108 deps = [
109 ":python_init",
John Park33858a32018-09-28 23:05:48 -0700110 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700111 "//external:python-gflags",
112 "//external:python-glog",
113 "//frc971/control_loops/python:controls",
James Kuszmaul910f92b2020-01-01 15:30:38 -0800114 "@matplotlib_repo//:matplotlib2.7",
Brian Silverman6470f442018-08-05 12:08:16 -0700115 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800116)
117
118py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700119 name = "wrist_lib",
120 srcs = [
121 "wrist.py",
122 ],
123 restricted_to = ["//tools:k8"],
124 deps = [
John Park33858a32018-09-28 23:05:48 -0700125 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700126 "//external:python-gflags",
127 "//external:python-glog",
128 "//frc971/control_loops/python:controls",
129 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800130)
131
132py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700133 name = "shoulder_lib",
134 srcs = [
135 "shoulder.py",
136 ],
137 restricted_to = ["//tools:k8"],
138 deps = [
John Park33858a32018-09-28 23:05:48 -0700139 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700140 "//external:python-gflags",
141 "//external:python-glog",
142 "//frc971/control_loops/python:controls",
James Kuszmaul910f92b2020-01-01 15:30:38 -0800143 "@matplotlib_repo//:matplotlib2.7",
Brian Silverman6470f442018-08-05 12:08:16 -0700144 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800145)
146
147py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700148 name = "arm_lib",
149 srcs = [
150 "arm.py",
151 ],
152 restricted_to = ["//tools:k8"],
153 deps = [
154 ":shoulder_lib",
155 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700156 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700157 "//external:python-gflags",
158 "//external:python-glog",
159 "//frc971/control_loops/python:controls",
James Kuszmaul910f92b2020-01-01 15:30:38 -0800160 "@matplotlib_repo//:matplotlib2.7",
Brian Silverman6470f442018-08-05 12:08:16 -0700161 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800162)
Brian Silverman6470f442018-08-05 12:08:16 -0700163
Austin Schuha88c4072016-02-06 14:31:03 -0800164py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700165 name = "arm",
166 srcs = [
167 "arm.py",
168 ],
169 legacy_create_init = False,
170 restricted_to = ["//tools:k8"],
171 deps = [
172 ":python_init",
173 ":shoulder_lib",
174 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700175 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700176 "//external:python-gflags",
177 "//external:python-glog",
178 "//frc971/control_loops/python:controls",
179 ],
180)
181
182py_library(
183 name = "python_init",
184 srcs = ["__init__.py"],
185 visibility = ["//visibility:public"],
186 deps = ["//y2016/control_loops:python_init"],
Comran Morshed2a97bc82016-01-16 17:27:01 +0000187)