blob: eebbfe225c438467650e99e0fa8cd7b74b154df8 [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,
Austin Schuhfc0837a2018-02-11 14:56:43 -08009 restricted_to = ["//tools:k8"],
10 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070011 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080012 "//external:python-gflags",
13 "//external:python-glog",
14 "//frc971/control_loops/python:drivetrain",
15 ],
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,
Austin Schuhfc0837a2018-02-11 14:56:43 -080025 restricted_to = ["//tools:k8"],
26 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070027 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080028 "//external:python-gflags",
29 "//external:python-glog",
30 "//frc971/control_loops/python:polydrivetrain",
31 ],
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 ],
40 restricted_to = ["//tools:k8"],
41 deps = [
42 "//external:python-gflags",
43 "//external:python-glog",
44 "//frc971/control_loops/python:controls",
45 "//frc971/control_loops/python:drivetrain",
46 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080047)
48
49py_test(
Austin Schuhfc0837a2018-02-11 14:56:43 -080050 name = "polydrivetrain_test",
51 srcs = [
52 "polydrivetrain_test.py",
53 ],
Brian Silverman6470f442018-08-05 12:08:16 -070054 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080055 restricted_to = ["//tools:k8"],
56 deps = [
57 ":polydrivetrain_lib",
Brian Silverman6470f442018-08-05 12:08:16 -070058 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080059 "//external:python-gflags",
60 "//external:python-glog",
61 "//frc971/control_loops/python:controls",
62 "//frc971/control_loops/python:polydrivetrain",
63 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080064)
Austin Schuhf173eb82018-01-20 23:32:30 -080065
66py_binary(
Austin Schuhfc0837a2018-02-11 14:56:43 -080067 name = "arm_trajectory",
68 srcs = [
69 "arm_trajectory.py",
70 "path_points.py",
71 ],
Brian Silverman6470f442018-08-05 12:08:16 -070072 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080073 restricted_to = ["//tools:k8"],
74 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070075 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080076 "//external:python-gflags",
77 "//external:python-glog",
78 "//frc971/control_loops/python:controls",
79 ],
80)
81
82py_binary(
83 name = "intake",
84 srcs = [
85 "intake.py",
86 ],
Brian Silverman6470f442018-08-05 12:08:16 -070087 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080088 restricted_to = ["//tools:k8"],
89 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070090 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080091 "//external:python-gflags",
92 "//external:python-glog",
93 "//frc971/control_loops/python:controls",
Brian Silverman6470f442018-08-05 12:08:16 -070094 "@matplotlib",
Austin Schuhfc0837a2018-02-11 14:56:43 -080095 ],
Austin Schuhf173eb82018-01-20 23:32:30 -080096)
Austin Schuhf8f95022018-01-28 20:01:10 -080097
98cc_binary(
99 name = "arm_mpc",
100 srcs = [
101 "arm_mpc.cc",
102 ],
Austin Schuhfc0837a2018-02-11 14:56:43 -0800103 restricted_to = ["//tools:k8"],
Austin Schuhf8f95022018-01-28 20:01:10 -0800104 deps = [
105 "//third_party/ct",
Austin Schuhf8f95022018-01-28 20:01:10 -0800106 "//third_party/gflags",
Austin Schuhfc0837a2018-02-11 14:56:43 -0800107 "//third_party/matplotlib-cpp",
Austin Schuhf8f95022018-01-28 20:01:10 -0800108 ],
Austin Schuhf8f95022018-01-28 20:01:10 -0800109)
Parker Schuhdc682952018-03-03 18:24:01 -0800110
111py_binary(
112 name = "graph_edit",
113 srcs = [
114 "basic_window.py",
115 "graph_edit.py",
116 "graph_generate.py",
117 ],
Parker Schuhdc682952018-03-03 18:24:01 -0800118 default_python_version = "PY3",
Brian Silverman6470f442018-08-05 12:08:16 -0700119 legacy_create_init = False,
Parker Schuhdc682952018-03-03 18:24:01 -0800120 srcs_version = "PY3",
Brian Silverman6470f442018-08-05 12:08:16 -0700121 deps = [
122 ":python_init",
123 ],
Parker Schuhdc682952018-03-03 18:24:01 -0800124)
Austin Schuh7dfccf62018-03-03 21:28:14 -0800125
126py_binary(
127 name = "graph_codegen",
128 srcs = [
129 "graph_codegen.py",
130 "graph_generate.py",
131 ],
Austin Schuh7dfccf62018-03-03 21:28:14 -0800132 default_python_version = "PY2",
Brian Silverman6470f442018-08-05 12:08:16 -0700133 legacy_create_init = False,
Austin Schuh7dfccf62018-03-03 21:28:14 -0800134 srcs_version = "PY2",
Brian Silverman6470f442018-08-05 12:08:16 -0700135 deps = [
136 ":python_init",
137 ],
138)
139
140py_library(
141 name = "python_init",
142 srcs = ["__init__.py"],
143 visibility = ["//visibility:public"],
144 deps = ["//y2018/control_loops:python_init"],
Austin Schuh7dfccf62018-03-03 21:28:14 -0800145)