blob: 50f55848ce43159943a27962528367d802bca356 [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 Schuh2e554032019-01-21 15:07:27 -080091 "//frc971/control_loops/python:controls",
Austin Schuhb5d302f2019-01-20 20:51:19 -080092 "//frc971/control_loops/python:linear_system",
Brian Silverman6470f442018-08-05 12:08:16 -070093 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080094)
95
96py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070097 name = "turret",
98 srcs = [
99 "turret.py",
100 ],
101 legacy_create_init = False,
102 restricted_to = ["//tools:k8"],
103 deps = [
104 ":python_init",
John Park33858a32018-09-28 23:05:48 -0700105 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700106 "//external:python-gflags",
107 "//external:python-glog",
108 "//frc971/control_loops/python:controls",
109 "@matplotlib",
110 ],
Austin Schuh48d60c12017-02-04 21:58:58 -0800111)
112
113py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700114 name = "hood",
115 srcs = [
116 "hood.py",
117 ],
118 legacy_create_init = False,
119 restricted_to = ["//tools:k8"],
120 deps = [
121 ":python_init",
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 "@matplotlib",
127 ],
Austin Schuh48d60c12017-02-04 21:58:58 -0800128)
Austin Schuh82a66dc2017-03-04 15:06:44 -0800129
130py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700131 name = "turret_lib",
132 srcs = [
133 "turret.py",
134 ],
135 restricted_to = ["//tools:k8"],
136 deps = [
John Park33858a32018-09-28 23:05:48 -0700137 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700138 "//external:python-gflags",
139 "//external:python-glog",
140 "//frc971/control_loops/python:controls",
141 ],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800142)
143
144py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700145 name = "indexer_lib",
146 srcs = [
147 "indexer.py",
148 ],
149 restricted_to = ["//tools:k8"],
150 deps = [
151 "//external:python-gflags",
152 "//external:python-glog",
153 "//frc971/control_loops/python:controls",
154 ],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800155)
156
157py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700158 name = "column",
159 srcs = [
160 "column.py",
161 ],
162 legacy_create_init = False,
163 restricted_to = ["//tools:k8"],
164 deps = [
165 ":indexer_lib",
166 ":python_init",
167 ":turret_lib",
168 "//external:python-gflags",
169 "//external:python-glog",
170 "//frc971/control_loops/python:controls",
171 "@matplotlib",
172 ],
173)
174
175py_library(
176 name = "python_init",
177 srcs = ["__init__.py"],
178 visibility = ["//visibility:public"],
179 deps = ["//y2017/control_loops:python_init"],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800180)