blob: 3f23bde1f67daa7b73e15ccff937d58ed75b2f2e [file] [log] [blame]
Brian Silverman6470f442018-08-05 12:08:16 -07001package(default_visibility = ["//y2017:__subpackages__"])
Diana Vandenberg223703d2017-01-28 17:39:53 -08002
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 ],
Diana Vandenberg223703d2017-01-28 17:39:53 -080016)
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 ],
Diana Vandenberg223703d2017-01-28 17:39:53 -080032)
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 "//frc971/control_loops/python:drivetrain",
46 ],
Diana Vandenberg223703d2017-01-28 17:39:53 -080047)
Austin Schuh48d60c12017-02-04 21:58:58 -080048
49py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070050 name = "shooter",
51 srcs = [
52 "shooter.py",
53 ],
54 legacy_create_init = False,
55 restricted_to = ["//tools:k8"],
56 deps = [
57 ":python_init",
58 "//external:python-gflags",
59 "//external:python-glog",
60 "//frc971/control_loops/python:controls",
61 "@matplotlib",
62 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080063)
64
65py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070066 name = "indexer",
67 srcs = [
68 "indexer.py",
69 ],
70 legacy_create_init = False,
71 restricted_to = ["//tools:k8"],
72 deps = [
73 ":python_init",
74 "//external:python-gflags",
75 "//external:python-glog",
76 "//frc971/control_loops/python:controls",
77 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080078)
79
80py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070081 name = "intake",
82 srcs = [
83 "intake.py",
84 ],
85 legacy_create_init = False,
86 restricted_to = ["//tools:k8"],
87 deps = [
88 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070089 "//external:python-gflags",
90 "//external:python-glog",
Austin Schuhb5d302f2019-01-20 20:51:19 -080091 "//frc971/control_loops/python:linear_system",
Brian Silverman6470f442018-08-05 12:08:16 -070092 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080093)
94
95py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070096 name = "turret",
97 srcs = [
98 "turret.py",
99 ],
100 legacy_create_init = False,
101 restricted_to = ["//tools:k8"],
102 deps = [
103 ":python_init",
John Park33858a32018-09-28 23:05:48 -0700104 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700105 "//external:python-gflags",
106 "//external:python-glog",
107 "//frc971/control_loops/python:controls",
108 "@matplotlib",
109 ],
Austin Schuh48d60c12017-02-04 21:58:58 -0800110)
111
112py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700113 name = "hood",
114 srcs = [
115 "hood.py",
116 ],
117 legacy_create_init = False,
118 restricted_to = ["//tools:k8"],
119 deps = [
120 ":python_init",
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 "@matplotlib",
126 ],
Austin Schuh48d60c12017-02-04 21:58:58 -0800127)
Austin Schuh82a66dc2017-03-04 15:06:44 -0800128
129py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700130 name = "turret_lib",
131 srcs = [
132 "turret.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 ],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800141)
142
143py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700144 name = "indexer_lib",
145 srcs = [
146 "indexer.py",
147 ],
148 restricted_to = ["//tools:k8"],
149 deps = [
150 "//external:python-gflags",
151 "//external:python-glog",
152 "//frc971/control_loops/python:controls",
153 ],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800154)
155
156py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700157 name = "column",
158 srcs = [
159 "column.py",
160 ],
161 legacy_create_init = False,
162 restricted_to = ["//tools:k8"],
163 deps = [
164 ":indexer_lib",
165 ":python_init",
166 ":turret_lib",
167 "//external:python-gflags",
168 "//external:python-glog",
169 "//frc971/control_loops/python:controls",
170 "@matplotlib",
171 ],
172)
173
174py_library(
175 name = "python_init",
176 srcs = ["__init__.py"],
177 visibility = ["//visibility:public"],
178 deps = ["//y2017/control_loops:python_init"],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800179)