blob: a7b562499193d1717e211d8b97c2c2813190666b [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",
Austin Schuh6647cb22023-02-21 12:35:25 -080061 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -070062 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070063 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080064)
65
66py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070067 name = "indexer",
68 srcs = [
69 "indexer.py",
70 ],
71 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080072 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070073 deps = [
74 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070075 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070076 "@pip//glog",
77 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070078 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080079)
80
81py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070082 name = "intake",
83 srcs = [
84 "intake.py",
85 ],
86 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080087 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070088 deps = [
89 ":python_init",
Austin Schuh2e554032019-01-21 15:07:27 -080090 "//frc971/control_loops/python:controls",
Austin Schuhb5d302f2019-01-20 20:51:19 -080091 "//frc971/control_loops/python:linear_system",
Philipp Schraderebb658f2022-09-17 17:31:09 -070092 "@pip//glog",
93 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070094 ],
Austin Schuh48d60c12017-02-04 21:58:58 -080095)
96
97py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070098 name = "turret",
99 srcs = [
100 "turret.py",
101 ],
102 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -0800103 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700104 deps = [
105 ":python_init",
John Park33858a32018-09-28 23:05:48 -0700106 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700107 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700108 "@pip//glog",
109 "@pip//matplotlib",
Austin Schuh6647cb22023-02-21 12:35:25 -0800110 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700111 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700112 ],
Austin Schuh48d60c12017-02-04 21:58:58 -0800113)
114
115py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700116 name = "hood",
117 srcs = [
118 "hood.py",
119 ],
120 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -0800121 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700122 deps = [
123 ":python_init",
John Park33858a32018-09-28 23:05:48 -0700124 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700125 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700126 "@pip//glog",
127 "@pip//matplotlib",
Austin Schuh6647cb22023-02-21 12:35:25 -0800128 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700129 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700130 ],
Austin Schuh48d60c12017-02-04 21:58:58 -0800131)
Austin Schuh82a66dc2017-03-04 15:06:44 -0800132
133py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700134 name = "turret_lib",
135 srcs = [
136 "turret.py",
137 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800138 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700139 deps = [
John Park33858a32018-09-28 23:05:48 -0700140 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700141 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700142 "@pip//glog",
143 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700144 ],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800145)
146
147py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700148 name = "indexer_lib",
149 srcs = [
150 "indexer.py",
151 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800152 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700153 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -0700154 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700155 "@pip//glog",
156 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700157 ],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800158)
159
160py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700161 name = "column",
162 srcs = [
163 "column.py",
164 ],
165 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -0800166 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700167 deps = [
168 ":indexer_lib",
169 ":python_init",
170 ":turret_lib",
Brian Silverman6470f442018-08-05 12:08:16 -0700171 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700172 "@pip//glog",
173 "@pip//matplotlib",
Austin Schuh6647cb22023-02-21 12:35:25 -0800174 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700175 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700176 ],
177)
178
179py_library(
180 name = "python_init",
181 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800182 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700183 visibility = ["//visibility:public"],
184 deps = ["//y2017/control_loops:python_init"],
Austin Schuh82a66dc2017-03-04 15:06:44 -0800185)