blob: d286ce054d919db12306469228c2f9c01e4b8f79 [file] [log] [blame]
Austin Schuhfc0837a2018-02-11 14:56:43 -08001package(default_visibility = ["//y2018:__subpackages__"])
Sabina Davisf4c5e762018-01-24 10:18:43 -08002
3py_binary(
Austin Schuhfc0837a2018-02-11 14:56:43 -08004 name = "drivetrain",
5 srcs = [
6 "drivetrain.py",
7 ],
Brian Silverman6470f442018-08-05 12:08:16 -07008 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -08009 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhfc0837a2018-02-11 14:56:43 -080010 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070011 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080012 "//frc971/control_loops/python:drivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070013 "@pip//glog",
14 "@pip//python_gflags",
Austin Schuhfc0837a2018-02-11 14:56:43 -080015 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080016)
17
18py_binary(
Austin Schuhfc0837a2018-02-11 14:56:43 -080019 name = "polydrivetrain",
20 srcs = [
21 "drivetrain.py",
22 "polydrivetrain.py",
23 ],
Brian Silverman6470f442018-08-05 12:08:16 -070024 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080025 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhfc0837a2018-02-11 14:56:43 -080026 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070027 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080028 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070029 "@pip//glog",
30 "@pip//python_gflags",
Austin Schuhfc0837a2018-02-11 14:56:43 -080031 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080032)
33
34py_library(
Austin Schuhfc0837a2018-02-11 14:56:43 -080035 name = "polydrivetrain_lib",
36 srcs = [
37 "drivetrain.py",
38 "polydrivetrain.py",
39 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080040 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuh44aa9142018-12-03 21:07:23 +110041 visibility = ["//visibility:public"],
Austin Schuhfc0837a2018-02-11 14:56:43 -080042 deps = [
Austin Schuh44aa9142018-12-03 21:07:23 +110043 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080044 "//frc971/control_loops/python:controls",
45 "//frc971/control_loops/python:drivetrain",
Austin Schuh44aa9142018-12-03 21:07:23 +110046 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070047 "@pip//glog",
48 "@pip//python_gflags",
Austin Schuhfc0837a2018-02-11 14:56:43 -080049 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080050)
51
52py_test(
Austin Schuhfc0837a2018-02-11 14:56:43 -080053 name = "polydrivetrain_test",
54 srcs = [
55 "polydrivetrain_test.py",
56 ],
Brian Silverman6470f442018-08-05 12:08:16 -070057 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080058 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhfc0837a2018-02-11 14:56:43 -080059 deps = [
60 ":polydrivetrain_lib",
Brian Silverman6470f442018-08-05 12:08:16 -070061 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080062 "//frc971/control_loops/python:controls",
63 "//frc971/control_loops/python:polydrivetrain",
Philipp Schraderebb658f2022-09-17 17:31:09 -070064 "@pip//glog",
65 "@pip//python_gflags",
Austin Schuhfc0837a2018-02-11 14:56:43 -080066 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080067)
Austin Schuhf173eb82018-01-20 23:32:30 -080068
69py_binary(
Austin Schuhfc0837a2018-02-11 14:56:43 -080070 name = "arm_trajectory",
71 srcs = [
72 "arm_trajectory.py",
73 "path_points.py",
74 ],
Brian Silverman6470f442018-08-05 12:08:16 -070075 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080076 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhfc0837a2018-02-11 14:56:43 -080077 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070078 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080079 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -070080 "@pip//glog",
81 "@pip//python_gflags",
Austin Schuhfc0837a2018-02-11 14:56:43 -080082 ],
83)
84
85py_binary(
86 name = "intake",
87 srcs = [
88 "intake.py",
89 ],
Brian Silverman6470f442018-08-05 12:08:16 -070090 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -080091 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhfc0837a2018-02-11 14:56:43 -080092 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070093 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080094 "//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",
Austin Schuhfc0837a2018-02-11 14:56:43 -080099 ],
Austin Schuhf173eb82018-01-20 23:32:30 -0800100)
Austin Schuhf8f95022018-01-28 20:01:10 -0800101
Austin Schuhad596222018-01-31 23:34:03 -0800102cc_binary(
103 name = "2d_plot",
104 srcs = [
105 "2d_plot.cc",
106 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800107 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhad596222018-01-31 23:34:03 -0800108 deps = [
Austin Schuhfc0837a2018-02-11 14:56:43 -0800109 "//third_party/matplotlib-cpp",
Austin Schuh99f7c6a2024-06-25 22:07:44 -0700110 "@com_google_absl//absl/flags:flag",
111 "@com_google_absl//absl/flags:parse",
Austin Schuhf8f95022018-01-28 20:01:10 -0800112 ],
Austin Schuhf8f95022018-01-28 20:01:10 -0800113)
Parker Schuhdc682952018-03-03 18:24:01 -0800114
115py_binary(
116 name = "graph_edit",
117 srcs = [
Parker Schuhdc682952018-03-03 18:24:01 -0800118 "graph_edit.py",
119 "graph_generate.py",
120 ],
Brian Silverman6470f442018-08-05 12:08:16 -0700121 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -0800122 target_compatible_with = ["@platforms//cpu:x86_64"],
Brian Silverman6470f442018-08-05 12:08:16 -0700123 deps = [
Alex Perrycb7da4b2019-08-28 19:35:56 -0700124 ":python_init",
johnp55310b82019-01-26 18:26:24 -0800125 "//frc971/control_loops/python:basic_window",
Andrew Runke6842bf92019-01-26 15:38:25 -0800126 "//frc971/control_loops/python:color",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700127 "@pip//numpy",
128 "@pip//pygobject",
129 "@pip//shapely",
Brian Silverman6470f442018-08-05 12:08:16 -0700130 ],
Parker Schuhdc682952018-03-03 18:24:01 -0800131)
Austin Schuh7dfccf62018-03-03 21:28:14 -0800132
133py_binary(
134 name = "graph_codegen",
135 srcs = [
136 "graph_codegen.py",
137 "graph_generate.py",
138 ],
Brian Silverman6470f442018-08-05 12:08:16 -0700139 legacy_create_init = False,
Philipp Schraderdada1072020-11-24 11:34:46 -0800140 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700141 deps = [
142 ":python_init",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700143 "@pip//numpy",
Brian Silverman6470f442018-08-05 12:08:16 -0700144 ],
145)
146
147py_library(
148 name = "python_init",
149 srcs = ["__init__.py"],
Philipp Schraderdada1072020-11-24 11:34:46 -0800150 target_compatible_with = ["@platforms//os:linux"],
Brian Silverman6470f442018-08-05 12:08:16 -0700151 visibility = ["//visibility:public"],
152 deps = ["//y2018/control_loops:python_init"],
Austin Schuh7dfccf62018-03-03 21:28:14 -0800153)
Austin Schuh434c8372018-01-21 16:30:06 -0800154
155py_binary(
156 name = "extended_lqr",
157 srcs = [
158 "extended_lqr.py",
159 ],
Philipp Schraderdada1072020-11-24 11:34:46 -0800160 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuh434c8372018-01-21 16:30:06 -0800161 deps = [
Austin Schuh434c8372018-01-21 16:30:06 -0800162 "//frc971/control_loops/python:controls",
Philipp Schraderebb658f2022-09-17 17:31:09 -0700163 "@pip//glog",
164 "@pip//python_gflags",
Austin Schuh434c8372018-01-21 16:30:06 -0800165 ],
166)