blob: 3fa425cd2a048c299780e96e58235f6c66d9bbf2 [file] [log] [blame]
package(default_visibility = ["//visibility:public"])
py_binary(
name = "haptic_wheel",
srcs = [
"haptic_wheel.py",
],
legacy_create_init = False,
restricted_to = ["//tools:k8"],
deps = [
"//external:python-gflags",
"//external:python-glog",
"//frc971/control_loops/python:controls",
"@matplotlib",
],
)
py_library(
name = "controls",
srcs = [
"cim.py",
"control_loop.py",
"controls.py",
"libcdd.py",
"polytope.py",
],
data = [
"//third_party/cddlib:_cddlib.so",
"@python_repo//:scipy",
],
restricted_to = ["//tools:k8"],
deps = [
":python_init",
"//external:python-glog",
"@slycot_repo//:slycot",
],
)
py_test(
name = "polytope_test",
srcs = [
"polytope_test.py",
],
legacy_create_init = False,
restricted_to = ["//tools:k8"],
deps = [
":controls",
":python_init",
],
)
py_binary(
name = "down_estimator",
srcs = [
"down_estimator.py",
],
legacy_create_init = False,
restricted_to = ["//tools:k8"],
deps = [
":controls",
":python_init",
"@matplotlib",
],
)
py_library(
name = "drivetrain",
srcs = [
"drivetrain.py",
],
restricted_to = ["//tools:k8"],
deps = [
":controls",
":python_init",
"@matplotlib",
],
)
py_library(
name = "polydrivetrain",
srcs = [
"polydrivetrain.py",
],
restricted_to = ["//tools:k8"],
deps = [
":controls",
":drivetrain",
":python_init",
"//external:python-glog",
],
)
py_library(
name = "python_init",
srcs = ["__init__.py"],
visibility = ["//visibility:public"],
deps = ["//frc971/control_loops:python_init"],
)
py_binary(
name = "spline",
srcs = [
"spline.py",
],
legacy_create_init = False,
restricted_to = ["//tools:k8"],
deps = [
"//external:python-gflags",
"//external:python-glog",
"//frc971/control_loops/python:controls",
"//y2018/control_loops/python:polydrivetrain_lib",
"@matplotlib",
],
)
py_library(
name = "linear_system",
srcs = ["linear_system.py"],
restricted_to = ["//tools:k8"],
visibility = ["//visibility:public"],
deps = [
":controls",
"//aos/util:py_trapezoid_profile",
"//frc971/control_loops:python_init",
"@matplotlib",
],
)