blob: bab607cc98ce196fc0078cc7c4072f421c3f6097 [file] [log] [blame]
Michael Schuhab42b0a2019-01-07 16:33:43 -08001package(default_visibility = ["//y2019:__subpackages__"])
2
3py_binary(
4 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"],
Michael Schuhab42b0a2019-01-07 16:33:43 -080010 deps = [
11 ":python_init",
Michael Schuhab42b0a2019-01-07 16:33:43 -080012 "//frc971/control_loops/python:drivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070013 "@pip//glog",
14 "@pip//python_gflags",
Michael Schuhab42b0a2019-01-07 16:33:43 -080015 ],
16)
17
18py_binary(
19 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"],
Michael Schuhab42b0a2019-01-07 16:33:43 -080026 deps = [
27 ":python_init",
Michael Schuhab42b0a2019-01-07 16:33:43 -080028 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070029 "@pip//glog",
30 "@pip//python_gflags",
Michael Schuhab42b0a2019-01-07 16:33:43 -080031 ],
32)
33
34py_library(
35 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"],
Michael Schuhab42b0a2019-01-07 16:33:43 -080041 visibility = ["//visibility:public"],
42 deps = [
43 ":python_init",
Michael Schuhab42b0a2019-01-07 16:33:43 -080044 "//frc971/control_loops/python:controls",
45 "//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",
Michael Schuhab42b0a2019-01-07 16:33:43 -080049 ],
50)
51
52py_library(
53 name = "python_init",
54 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -080055 target_compatible_with = ["@platforms//os:linux"],
Michael Schuhab42b0a2019-01-07 16:33:43 -080056 visibility = ["//visibility:public"],
Austin Schuh378483c2019-01-20 16:36:40 -080057 deps = ["//y2019/control_loops:python_init"],
Michael Schuhab42b0a2019-01-07 16:33:43 -080058)
Austin Schuhb0b6ccb2019-01-20 21:56:33 -080059
60py_binary(
61 name = "elevator",
62 srcs = [
63 "elevator.py",
64 ],
65 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080066 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhb0b6ccb2019-01-20 21:56:33 -080067 deps = [
68 ":python_init",
Austin Schuh2e554032019-01-21 15:07:27 -080069 "//frc971/control_loops/python:controls",
Austin Schuhb0b6ccb2019-01-20 21:56:33 -080070 "//frc971/control_loops/python:linear_system",
Philipp Schraderebb658f2022-09-17 17:31:09 -070071 "@pip//glog",
72 "@pip//python_gflags",
Austin Schuhb0b6ccb2019-01-20 21:56:33 -080073 ],
74)
Austin Schuh47a0ee12019-01-21 16:01:32 -080075
76py_binary(
77 name = "wrist",
78 srcs = [
79 "wrist.py",
80 ],
81 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080082 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuh47a0ee12019-01-21 16:01:32 -080083 deps = [
84 ":python_init",
Austin Schuh47a0ee12019-01-21 16:01:32 -080085 "//frc971/control_loops/python:angular_system",
86 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070087 "@pip//glog",
88 "@pip//python_gflags",
Austin Schuh47a0ee12019-01-21 16:01:32 -080089 ],
90)
Austin Schuhf2a9c1a2019-01-21 16:42:28 -080091
92py_binary(
93 name = "intake",
94 srcs = [
95 "intake.py",
96 ],
97 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080098 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhf2a9c1a2019-01-21 16:42:28 -080099 deps = [
100 ":python_init",
Austin Schuhf2a9c1a2019-01-21 16:42:28 -0800101 "//frc971/control_loops/python:angular_system",
102 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700103 "@pip//glog",
104 "@pip//python_gflags",
Austin Schuhf2a9c1a2019-01-21 16:42:28 -0800105 ],
106)
Austin Schuh9642a1d2019-01-21 16:54:14 -0800107
108py_binary(
Theo Bafrali6915f112019-02-08 22:01:54 -0800109 name = "stilts",
Austin Schuh9642a1d2019-01-21 16:54:14 -0800110 srcs = [
Theo Bafrali6915f112019-02-08 22:01:54 -0800111 "stilts.py",
Austin Schuh9642a1d2019-01-21 16:54:14 -0800112 ],
113 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -0800114 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuh9642a1d2019-01-21 16:54:14 -0800115 deps = [
116 ":python_init",
Austin Schuh9642a1d2019-01-21 16:54:14 -0800117 "//frc971/control_loops/python:controls",
Austin Schuhdde64052019-12-11 20:28:00 -0800118 "//frc971/control_loops/python:linear_system",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700119 "@pip//glog",
120 "@pip//python_gflags",
Austin Schuh9642a1d2019-01-21 16:54:14 -0800121 ],
122)