blob: 3bfba96b5e69b353c89e5463b83283f05e52632e [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",
Austin Schuh6647cb22023-02-21 12:35:25 -080063 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -070064 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070065 ],
Austin Schuh572ff402015-11-08 12:17:50 -080066)
Austin Schuh9d4aca82015-11-08 14:41:31 -080067
68py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070069 name = "shooter",
70 srcs = [
71 "shooter.py",
72 ],
73 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080074 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070075 deps = [
76 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070077 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070078 "@pip//glog",
79 "@pip//matplotlib",
Austin Schuh6647cb22023-02-21 12:35:25 -080080 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -070081 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070082 ],
Austin Schuh9d4aca82015-11-08 14:41:31 -080083)
Austin Schuh0038f8e2016-07-20 19:57:01 -070084
85py_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070086 name = "extended_lqr",
87 srcs = [
88 "extended_lqr.py",
89 ],
90 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080091 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -070092 deps = [
93 ":python_init",
Brian Silverman6470f442018-08-05 12:08:16 -070094 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070095 "@pip//glog",
96 "@pip//matplotlib",
Austin Schuh6647cb22023-02-21 12:35:25 -080097 "@pip//pygobject",
Philipp Schraderebb658f2022-09-17 17:31:09 -070098 "@pip//python_gflags",
Brian Silverman6470f442018-08-05 12:08:16 -070099 ],
100)
101
102py_library(
103 name = "python_init",
104 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800105 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700106 visibility = ["//visibility:public"],
107 deps = ["//y2014/control_loops:python_init"],
Austin Schuh0038f8e2016-07-20 19:57:01 -0700108)