blob: ef274b8a245d7278a923aae3b5899596256167f3 [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",
milind-u086d7262022-01-19 20:44:18 -080012 "//frc971/control_loops/python:drivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070013 "@pip//glog",
14 "@pip//python_gflags",
milind-u086d7262022-01-19 20:44:18 -080015 ],
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",
milind-u086d7262022-01-19 20:44:18 -080028 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070029 "@pip//glog",
30 "@pip//python_gflags",
milind-u086d7262022-01-19 20:44:18 -080031 ],
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 = [
milind-u086d7262022-01-19 20:44:18 -080043 "//frc971/control_loops/python:controls",
44 "//frc971/control_loops/python:drivetrain",
45 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070046 "@pip//glog",
47 "@pip//python_gflags",
milind-u086d7262022-01-19 20:44:18 -080048 ],
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 = [
Austin Schuhac61c882022-02-23 17:22:22 -080058 "//aos/util:py_trapezoid_profile",
59 "//frc971/control_loops/python:angular_system",
Austin Schuh82162452022-02-07 22:01:45 -080060 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070061 "@pip//matplotlib",
Austin Schuh82162452022-02-07 22:01:45 -080062 ],
63)
64
65py_binary(
66 name = "catapult",
67 srcs = [
68 "catapult.py",
69 ],
70 legacy_create_init = False,
71 target_compatible_with = ["@platforms//cpu:x86_64"],
72 deps = [
73 ":catapult_lib",
74 ":python_init",
Philipp Schraderebb658f2022-09-17 17:31:09 -070075 "@pip//glog",
76 "@pip//osqp",
77 "@pip//python_gflags",
Austin Schuh82162452022-02-07 22:01:45 -080078 ],
79)
80
Milo Lin5d49af02022-02-05 12:50:32 -080081py_binary(
82 name = "intake",
83 srcs = [
84 "intake.py",
85 ],
86 legacy_create_init = False,
87 target_compatible_with = ["@platforms//cpu:x86_64"],
88 deps = [
89 ":python_init",
Milo Lin5d49af02022-02-05 12:50:32 -080090 "//frc971/control_loops/python:angular_system",
91 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070092 "@pip//glog",
93 "@pip//python_gflags",
Milo Lin5d49af02022-02-05 12:50:32 -080094 ],
95)
96
Austin Schuh219ace52022-02-07 21:54:16 -080097py_binary(
98 name = "turret",
99 srcs = [
100 "turret.py",
101 ],
102 legacy_create_init = False,
103 target_compatible_with = ["@platforms//cpu:x86_64"],
104 deps = [
105 ":python_init",
Austin Schuh219ace52022-02-07 21:54:16 -0800106 "//frc971/control_loops/python:angular_system",
107 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700108 "@pip//glog",
109 "@pip//python_gflags",
Austin Schuh219ace52022-02-07 21:54:16 -0800110 ],
111)
112
Siddhant Kanwar0e37f592022-02-21 19:26:50 -0800113py_binary(
114 name = "climber",
115 srcs = [
116 "climber.py",
117 ],
118 legacy_create_init = False,
119 target_compatible_with = ["@platforms//cpu:x86_64"],
120 deps = [
121 ":python_init",
Siddhant Kanwar0e37f592022-02-21 19:26:50 -0800122 "//frc971/control_loops/python:controls",
123 "//frc971/control_loops/python:linear_system",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700124 "@pip//glog",
125 "@pip//python_gflags",
Siddhant Kanwar0e37f592022-02-21 19:26:50 -0800126 ],
127)
128
milind-u086d7262022-01-19 20:44:18 -0800129py_library(
130 name = "python_init",
131 srcs = ["__init__.py"],
132 target_compatible_with = ["@platforms//os:linux"],
133 visibility = ["//visibility:public"],
Milo Lin5d49af02022-02-05 12:50:32 -0800134 deps = ["//y2022/control_loops:python_init"],
milind-u086d7262022-01-19 20:44:18 -0800135)