blob: ad3fbe9dd70fdb6a2e5bd8bd1dd3d2ca64103abd [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,
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 ],
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,
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 ],
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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080040 target_compatible_with = ["@platforms//cpu:x86_64"],
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 "//frc971/control_loops/python:controls",
Austin Schuh7b1e9df2018-12-19 18:04:41 +110045 "//frc971/control_loops/python:drivetrain",
46 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070047 "@pip//glog",
48 "@pip//python_gflags",
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,
Philipp Schraderdada1072020-11-24 11:34:46 -080058 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070059 deps = [
60 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070061 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070062 "@pip//glog",
63 "@pip//matplotlib",
64 "@pip//python_gflags",
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,
Philipp Schraderdada1072020-11-24 11:34:46 -080074 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070075 deps = [
76 ":python_init",
Austin Schuh2e554032019-01-21 15:07:27 -080077 "//frc971/control_loops/python:angular_system",
Brian Silverman6470f442018-08-05 12:08:16 -070078 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070079 "@pip//glog",
80 "@pip//python_gflags",
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,
Philipp Schraderdada1072020-11-24 11:34:46 -080090 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070091 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 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070095 "@pip//glog",
96 "@pip//matplotlib",
97 "@pip//python_gflags",
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,
Philipp Schraderdada1072020-11-24 11:34:46 -0800107 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700108 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 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700112 "@pip//glog",
113 "@pip//matplotlib",
114 "@pip//python_gflags",
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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800123 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700124 deps = [
John Park33858a32018-09-28 23:05:48 -0700125 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700126 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700127 "@pip//glog",
128 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700129 ],
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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800137 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700138 deps = [
John Park33858a32018-09-28 23:05:48 -0700139 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700140 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700141 "@pip//glog",
142 "@pip//matplotlib",
143 "@pip//python_gflags",
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 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800152 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700153 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 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700158 "@pip//glog",
159 "@pip//matplotlib",
160 "@pip//python_gflags",
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,
Philipp Schraderdada1072020-11-24 11:34:46 -0800170 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700171 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 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700177 "@pip//glog",
178 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700179 ],
180)
181
182py_library(
183 name = "python_init",
184 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800185 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700186 visibility = ["//visibility:public"],
187 deps = ["//y2016/control_loops:python_init"],
Comran Morshed2a97bc82016-01-16 17:27:01 +0000188)