blob: 6b549500d0863fb68f95764935c4a86dd3ac5123 [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",
Austin Schuh6647cb22023-02-21 12:35:25 -080064 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -070065 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070066 ],
Comran Morshed52f9a1f2016-02-03 19:53:50 +000067)
68
69py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070070 name = "intake",
71 srcs = [
72 "intake.py",
73 ],
74 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080075 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070076 deps = [
77 ":python_init",
Austin Schuh2e554032019-01-21 15:07:27 -080078 "//frc971/control_loops/python:angular_system",
Brian Silverman6470f442018-08-05 12:08:16 -070079 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070080 "@pip//glog",
81 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070082 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +000083)
84
85py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070086 name = "shoulder",
87 srcs = [
88 "shoulder.py",
89 ],
90 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080091 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -070092 deps = [
93 ":python_init",
John Park33858a32018-09-28 23:05:48 -070094 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -070095 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070096 "@pip//glog",
97 "@pip//matplotlib",
Austin Schuh6647cb22023-02-21 12:35:25 -080098 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -070099 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700100 ],
Comran Morshed2ae094e2016-01-23 20:43:20 +0000101)
102
103py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700104 name = "wrist",
105 srcs = [
106 "wrist.py",
107 ],
108 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -0800109 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700110 deps = [
111 ":python_init",
John Park33858a32018-09-28 23:05:48 -0700112 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700113 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700114 "@pip//glog",
115 "@pip//matplotlib",
Austin Schuh6647cb22023-02-21 12:35:25 -0800116 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700117 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700118 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800119)
120
121py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700122 name = "wrist_lib",
123 srcs = [
124 "wrist.py",
125 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800126 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700127 deps = [
John Park33858a32018-09-28 23:05:48 -0700128 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700129 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700130 "@pip//glog",
131 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700132 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800133)
134
135py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700136 name = "shoulder_lib",
137 srcs = [
138 "shoulder.py",
139 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800140 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700141 deps = [
John Park33858a32018-09-28 23:05:48 -0700142 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700143 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700144 "@pip//glog",
145 "@pip//matplotlib",
Austin Schuh6647cb22023-02-21 12:35:25 -0800146 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700147 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700148 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800149)
150
151py_library(
Brian Silverman6470f442018-08-05 12:08:16 -0700152 name = "arm_lib",
153 srcs = [
154 "arm.py",
155 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800156 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700157 deps = [
158 ":shoulder_lib",
159 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700160 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700161 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700162 "@pip//glog",
163 "@pip//matplotlib",
Austin Schuh6647cb22023-02-21 12:35:25 -0800164 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700165 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700166 ],
Austin Schuha88c4072016-02-06 14:31:03 -0800167)
Brian Silverman6470f442018-08-05 12:08:16 -0700168
Austin Schuha88c4072016-02-06 14:31:03 -0800169py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -0700170 name = "arm",
171 srcs = [
172 "arm.py",
173 ],
174 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -0800175 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700176 deps = [
177 ":python_init",
178 ":shoulder_lib",
179 ":wrist_lib",
John Park33858a32018-09-28 23:05:48 -0700180 "//aos/util:py_trapezoid_profile",
Brian Silverman6470f442018-08-05 12:08:16 -0700181 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700182 "@pip//glog",
183 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -0700184 ],
185)
186
187py_library(
188 name = "python_init",
189 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800190 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700191 visibility = ["//visibility:public"],
192 deps = ["//y2016/control_loops:python_init"],
Comran Morshed2a97bc82016-01-16 17:27:01 +0000193)