blob: 20035bcf526ee9c7064e3e73d1ecc1c310f4c86b [file] [log] [blame]
Brian Silverman6470f442018-08-05 12:08:16 -07001package(default_visibility = ["//y2014:__subpackages__"])
Austin Schuh572ff402015-11-08 12:17:50 -08002
3py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -07004 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//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070010 deps = [
11 ":python_init",
12 "//external:python-gflags",
13 "//external:python-glog",
14 "//frc971/control_loops/python:drivetrain",
15 ],
Austin Schuhedc317c2015-11-08 14:07:42 -080016)
17
Austin Schuh0e997732015-11-08 15:14:53 -080018py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070019 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//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070026 deps = [
27 ":python_init",
28 "//external:python-gflags",
29 "//external:python-glog",
30 "//frc971/control_loops/python:polydrivetrain",
31 ],
Austin Schuhedc317c2015-11-08 14:07:42 -080032)
33
Austin Schuh0e997732015-11-08 15:14:53 -080034py_library(
Brian Silverman6470f442018-08-05 12:08:16 -070035 name = "polydrivetrain_lib",
36 srcs = [
37 "drivetrain.py",
38 "polydrivetrain.py",
39 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080040 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070041 deps = [
42 "//external:python-gflags",
43 "//external:python-glog",
44 "//frc971/control_loops/python:controls",
45 "//frc971/control_loops/python:drivetrain",
46 "//frc971/control_loops/python:polydrivetrain",
47 ],
Austin Schuh0e997732015-11-08 15:14:53 -080048)
49
Austin Schuhedc317c2015-11-08 14:07:42 -080050py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070051 name = "claw",
52 srcs = [
53 "claw.py",
54 ],
55 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080056 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070057 deps = [
58 ":polydrivetrain_lib",
59 ":python_init",
60 "//external:python-gflags",
61 "//external:python-glog",
62 "//frc971/control_loops/python:controls",
Austin Schuh085eab92020-11-26 13:54:51 -080063 "@matplotlib_repo//:matplotlib3",
Brian Silverman6470f442018-08-05 12:08:16 -070064 ],
Austin Schuh572ff402015-11-08 12:17:50 -080065)
Austin Schuh9d4aca82015-11-08 14:41:31 -080066
67py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070068 name = "shooter",
69 srcs = [
70 "shooter.py",
71 ],
72 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080073 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070074 deps = [
75 ":python_init",
76 "//external:python-gflags",
77 "//external:python-glog",
78 "//frc971/control_loops/python:controls",
Austin Schuh085eab92020-11-26 13:54:51 -080079 "@matplotlib_repo//:matplotlib3",
Brian Silverman6470f442018-08-05 12:08:16 -070080 ],
Austin Schuh9d4aca82015-11-08 14:41:31 -080081)
Austin Schuh0038f8e2016-07-20 19:57:01 -070082
83py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070084 name = "extended_lqr",
85 srcs = [
86 "extended_lqr.py",
87 ],
88 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080089 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070090 deps = [
91 ":python_init",
92 "//external:python-gflags",
93 "//external:python-glog",
94 "//frc971/control_loops/python:controls",
Austin Schuh085eab92020-11-26 13:54:51 -080095 "@matplotlib_repo//:matplotlib3",
Brian Silverman6470f442018-08-05 12:08:16 -070096 ],
97)
98
99py_library(
100 name = "python_init",
101 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800102 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700103 visibility = ["//visibility:public"],
104 deps = ["//y2014/control_loops:python_init"],
Austin Schuh0038f8e2016-07-20 19:57:01 -0700105)