blob: 4049acc10cd18c70e046574b927787d0ca8d4e3a [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
Milo Lin5d49af02022-02-05 12:50:32 -080051py_binary(
52 name = "intake",
53 srcs = [
54 "intake.py",
55 ],
56 legacy_create_init = False,
57 target_compatible_with = ["@platforms//cpu:x86_64"],
58 deps = [
59 ":python_init",
60 "//external:python-gflags",
61 "//external:python-glog",
62 "//frc971/control_loops/python:angular_system",
63 "//frc971/control_loops/python:controls",
64 ],
65)
66
Austin Schuh219ace52022-02-07 21:54:16 -080067py_binary(
68 name = "turret",
69 srcs = [
70 "turret.py",
71 ],
72 legacy_create_init = False,
73 target_compatible_with = ["@platforms//cpu:x86_64"],
74 deps = [
75 ":python_init",
76 "//external:python-gflags",
77 "//external:python-glog",
78 "//frc971/control_loops/python:angular_system",
79 "//frc971/control_loops/python:controls",
80 ],
81)
82
milind-u086d7262022-01-19 20:44:18 -080083py_library(
84 name = "python_init",
85 srcs = ["__init__.py"],
86 target_compatible_with = ["@platforms//os:linux"],
87 visibility = ["//visibility:public"],
Milo Lin5d49af02022-02-05 12:50:32 -080088 deps = ["//y2022/control_loops:python_init"],
milind-u086d7262022-01-19 20:44:18 -080089)