blob: 286b874d03c06f8627cdf038de49d180e94ad4dd [file] [log] [blame]
milind-u086d7262022-01-19 20:44:18 -08001package(default_visibility = ["//y2022:__subpackages__"])
2
3py_binary(
4 name = "drivetrain",
5 srcs = [
6 "drivetrain.py",
7 ],
8 legacy_create_init = False,
9 target_compatible_with = ["@platforms//cpu:x86_64"],
10 deps = [
11 ":python_init",
12 "//external:python-gflags",
13 "//external:python-glog",
14 "//frc971/control_loops/python:drivetrain",
15 ],
16)
17
18py_binary(
19 name = "polydrivetrain",
20 srcs = [
21 "drivetrain.py",
22 "polydrivetrain.py",
23 ],
24 legacy_create_init = False,
25 target_compatible_with = ["@platforms//cpu:x86_64"],
26 deps = [
27 ":python_init",
28 "//external:python-gflags",
29 "//external:python-glog",
30 "//frc971/control_loops/python:polydrivetrain",
31 ],
32)
33
34py_library(
35 name = "polydrivetrain_lib",
36 srcs = [
37 "drivetrain.py",
38 "polydrivetrain.py",
39 ],
40 target_compatible_with = ["@platforms//cpu:x86_64"],
41 visibility = ["//visibility:public"],
42 deps = [
43 "//external:python-gflags",
44 "//external:python-glog",
45 "//frc971/control_loops/python:controls",
46 "//frc971/control_loops/python:drivetrain",
47 "//frc971/control_loops/python:polydrivetrain",
48 ],
49)
50
Austin Schuh82162452022-02-07 22:01:45 -080051py_library(
52 name = "catapult_lib",
53 srcs = [
54 "catapult_lib.py",
55 ],
56 target_compatible_with = ["@platforms//cpu:x86_64"],
57 deps = [
58 "//frc971/control_loops/python:controls",
59 "@matplotlib_repo//:matplotlib3",
60 ],
61)
62
63py_binary(
64 name = "catapult",
65 srcs = [
66 "catapult.py",
67 ],
68 legacy_create_init = False,
69 target_compatible_with = ["@platforms//cpu:x86_64"],
70 deps = [
71 ":catapult_lib",
72 ":python_init",
73 "//external:python-gflags",
74 "//external:python-glog",
Austin Schuh2e28d872022-02-19 18:25:57 -080075 "@osqp_amd64//:python_osqp",
Austin Schuh82162452022-02-07 22:01:45 -080076 ],
77)
78
Milo Lin5d49af02022-02-05 12:50:32 -080079py_binary(
80 name = "intake",
81 srcs = [
82 "intake.py",
83 ],
84 legacy_create_init = False,
85 target_compatible_with = ["@platforms//cpu:x86_64"],
86 deps = [
87 ":python_init",
88 "//external:python-gflags",
89 "//external:python-glog",
90 "//frc971/control_loops/python:angular_system",
91 "//frc971/control_loops/python:controls",
92 ],
93)
94
Austin Schuh219ace52022-02-07 21:54:16 -080095py_binary(
96 name = "turret",
97 srcs = [
98 "turret.py",
99 ],
100 legacy_create_init = False,
101 target_compatible_with = ["@platforms//cpu:x86_64"],
102 deps = [
103 ":python_init",
104 "//external:python-gflags",
105 "//external:python-glog",
106 "//frc971/control_loops/python:angular_system",
107 "//frc971/control_loops/python:controls",
108 ],
109)
110
Siddhant Kanwar0e37f592022-02-21 19:26:50 -0800111py_binary(
112 name = "climber",
113 srcs = [
114 "climber.py",
115 ],
116 legacy_create_init = False,
117 target_compatible_with = ["@platforms//cpu:x86_64"],
118 deps = [
119 ":python_init",
120 "//external:python-gflags",
121 "//external:python-glog",
122 "//frc971/control_loops/python:controls",
123 "//frc971/control_loops/python:linear_system",
124 ],
125)
126
milind-u086d7262022-01-19 20:44:18 -0800127py_library(
128 name = "python_init",
129 srcs = ["__init__.py"],
130 target_compatible_with = ["@platforms//os:linux"],
131 visibility = ["//visibility:public"],
Milo Lin5d49af02022-02-05 12:50:32 -0800132 deps = ["//y2022/control_loops:python_init"],
milind-u086d7262022-01-19 20:44:18 -0800133)