blob: 209bd70e3d2cb435edd6657e3f29b2091409d33f [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,
Philipp Schraderdada1072020-11-24 11:34:46 -08009 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070010 deps = [
11 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070012 "//frc971/control_loops/python:drivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070013 "@pip//glog",
14 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070015 ],
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,
Philipp Schraderdada1072020-11-24 11:34:46 -080025 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070026 deps = [
27 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070028 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070029 "@pip//glog",
30 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070031 ],
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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080040 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070041 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070042 "//frc971/control_loops/python:controls",
43 "//frc971/control_loops/python:drivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070044 "@pip//glog",
45 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070046 ],
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,
Philipp Schraderdada1072020-11-24 11:34:46 -080055 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070056 deps = [
57 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070058 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070059 "@pip//glog",
60 "@pip//matplotlib",
61 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070062 ],
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,
Philipp Schraderdada1072020-11-24 11:34:46 -080071 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070072 deps = [
73 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070074 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070075 "@pip//glog",
76 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070077 ],
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,
Philipp Schraderdada1072020-11-24 11:34:46 -080086 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070087 deps = [
88 ":python_init",
Austin Schuh2e554032019-01-21 15:07:27 -080089 "//frc971/control_loops/python:controls",
Austin Schuhb5d302f2019-01-20 20:51:19 -080090 "//frc971/control_loops/python:linear_system",
Philipp Schraderebb658f2022-09-17 17:31:09 -070091 "@pip//glog",
92 "@pip//python_gflags",
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,
Philipp Schraderdada1072020-11-24 11:34:46 -0800102 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700103 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 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700107 "@pip//glog",
108 "@pip//matplotlib",
109 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700110 ],
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,
Philipp Schraderdada1072020-11-24 11:34:46 -0800119 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700120 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 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700124 "@pip//glog",
125 "@pip//matplotlib",
126 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700127 ],
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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800135 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700136 deps = [
John Park33858a32018-09-28 23:05:48 -0700137 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700138 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700139 "@pip//glog",
140 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700141 ],
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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800149 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700150 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -0700151 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700152 "@pip//glog",
153 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700154 ],
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,
Philipp Schraderdada1072020-11-24 11:34:46 -0800163 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700164 deps = [
165 ":indexer_lib",
166 ":python_init",
167 ":turret_lib",
Brian Silverman6470f442018-08-05 12:08:16 -0700168 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700169 "@pip//glog",
170 "@pip//matplotlib",
171 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700172 ],
173)
174
175py_library(
176 name = "python_init",
177 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800178 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700179 visibility = ["//visibility:public"],
180 deps = ["//y2017/control_loops:python_init"],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800181)