| 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"], |
| ) |