blob: 570440579b2714d0357785ddb8aa08342f1a0e67 [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",
Brian Silverman6470f442018-08-05 12:08:16 -070012 "//frc971/control_loops/python:drivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070013 "@pip//glog",
14 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070015 ],
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",
Brian Silverman6470f442018-08-05 12:08:16 -070028 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070029 "@pip//glog",
30 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070031 ],
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 = [
Brian Silverman6470f442018-08-05 12:08:16 -070042 "//frc971/control_loops/python:controls",
43 "//frc971/control_loops/python:drivetrain",
44 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070045 "@pip//glog",
46 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070047 ],
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",
Brian Silverman6470f442018-08-05 12:08:16 -070060 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070061 "@pip//glog",
62 "@pip//matplotlib",
63 "@pip//python_gflags",
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",
Brian Silverman6470f442018-08-05 12:08:16 -070076 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070077 "@pip//glog",
78 "@pip//matplotlib",
79 "@pip//python_gflags",
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",
Brian Silverman6470f442018-08-05 12:08:16 -070092 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070093 "@pip//glog",
94 "@pip//matplotlib",
95 "@pip//python_gflags",
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)