blob: 61092557ce9963d9d2e39c4c47985b71c04603e3 [file] [log] [blame]
Maxwell Hendersonad312342023-01-10 12:07:47 -08001package(default_visibility = ["//y2023:__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 "//frc971/control_loops/python:drivetrain",
13 "@pip//glog",
14 "@pip//python_gflags",
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 "//frc971/control_loops/python:polydrivetrain",
29 "@pip//glog",
30 "@pip//python_gflags",
31 ],
32)
33
Maxwell Henderson7af00982023-02-04 12:42:07 -080034py_binary(
35 name = "graph_edit",
36 srcs = [
37 "graph_edit.py",
Maxwell Hendersonf5123fe2023-02-04 13:44:41 -080038 "graph_paths.py",
39 "graph_tools.py",
Maxwell Henderson7af00982023-02-04 12:42:07 -080040 ],
41 legacy_create_init = False,
42 target_compatible_with = ["@platforms//cpu:x86_64"],
43 deps = [
44 ":python_init",
45 "//frc971/control_loops/python:basic_window",
46 "//frc971/control_loops/python:color",
47 "@pip//numpy",
48 "@pip//pygobject",
49 "@pip//shapely",
50 ],
51)
52
milind-ua7af5162023-02-20 15:13:48 -080053py_binary(
54 name = "graph_codegen",
55 srcs = [
56 "graph_codegen.py",
57 "graph_paths.py",
58 ],
59 legacy_create_init = False,
60 target_compatible_with = ["@platforms//os:linux"],
61 deps = [
62 ":python_init",
63 "//frc971/control_loops/python:basic_window",
64 "//frc971/control_loops/python:color",
65 "@pip//numpy",
66 ],
67)
68
Maxwell Hendersonad312342023-01-10 12:07:47 -080069py_library(
70 name = "polydrivetrain_lib",
71 srcs = [
72 "drivetrain.py",
73 "polydrivetrain.py",
74 ],
75 target_compatible_with = ["@platforms//cpu:x86_64"],
76 visibility = ["//visibility:public"],
77 deps = [
78 "//frc971/control_loops/python:controls",
79 "//frc971/control_loops/python:drivetrain",
80 "//frc971/control_loops/python:polydrivetrain",
81 "@pip//glog",
82 "@pip//python_gflags",
83 ],
84)
85
86py_library(
87 name = "python_init",
88 srcs = ["__init__.py"],
89 target_compatible_with = ["@platforms//os:linux"],
90 visibility = ["//visibility:public"],
91 deps = ["//y2023/control_loops:python_init"],
92)
milind-u53ad98a2023-02-20 16:26:09 -080093
94py_binary(
95 name = "roll",
96 srcs = [
97 "roll.py",
98 ],
99 legacy_create_init = False,
100 target_compatible_with = ["@platforms//cpu:x86_64"],
101 deps = [
102 ":python_init",
103 "//frc971/control_loops/python:angular_system",
104 "//frc971/control_loops/python:controls",
105 "@pip//glog",
106 "@pip//python_gflags",
107 ],
108)
milind-uf8bd1772023-02-20 16:27:25 -0800109
110py_binary(
111 name = "wrist",
112 srcs = [
113 "wrist.py",
114 ],
115 legacy_create_init = False,
116 target_compatible_with = ["@platforms//cpu:x86_64"],
117 deps = [
118 ":python_init",
119 "//frc971/control_loops/python:angular_system",
120 "//frc971/control_loops/python:controls",
121 "@pip//glog",
122 "@pip//python_gflags",
123 ],
124)