Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 2 | |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 3 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 4 | name = "haptic_wheel", |
| 5 | srcs = [ |
| 6 | "haptic_wheel.py", |
| 7 | ], |
| 8 | legacy_create_init = False, |
| 9 | restricted_to = ["//tools:k8"], |
| 10 | deps = [ |
| 11 | "//external:python-gflags", |
| 12 | "//external:python-glog", |
| 13 | "//frc971/control_loops/python:controls", |
| 14 | "@matplotlib", |
| 15 | ], |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 16 | ) |
| 17 | |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 18 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 19 | name = "controls", |
| 20 | srcs = [ |
| 21 | "cim.py", |
| 22 | "control_loop.py", |
| 23 | "controls.py", |
| 24 | "libcdd.py", |
| 25 | "polytope.py", |
| 26 | ], |
| 27 | data = [ |
| 28 | "//third_party/cddlib:_cddlib.so", |
| 29 | "@python_repo//:scipy", |
| 30 | ], |
| 31 | restricted_to = ["//tools:k8"], |
| 32 | deps = [ |
| 33 | ":python_init", |
| 34 | "//external:python-glog", |
| 35 | "@slycot_repo//:slycot", |
| 36 | ], |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 37 | ) |
Brian Silverman | 9c89c0a | 2016-01-08 01:04:57 -0800 | [diff] [blame] | 38 | |
| 39 | py_test( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 40 | name = "polytope_test", |
| 41 | srcs = [ |
| 42 | "polytope_test.py", |
| 43 | ], |
| 44 | legacy_create_init = False, |
| 45 | restricted_to = ["//tools:k8"], |
| 46 | deps = [ |
| 47 | ":controls", |
| 48 | ":python_init", |
| 49 | ], |
Brian Silverman | 9c89c0a | 2016-01-08 01:04:57 -0800 | [diff] [blame] | 50 | ) |
Brian Silverman | 69120d7 | 2016-03-08 16:56:16 -0500 | [diff] [blame] | 51 | |
| 52 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 53 | name = "down_estimator", |
| 54 | srcs = [ |
| 55 | "down_estimator.py", |
| 56 | ], |
| 57 | legacy_create_init = False, |
| 58 | restricted_to = ["//tools:k8"], |
| 59 | deps = [ |
| 60 | ":controls", |
| 61 | ":python_init", |
| 62 | "@matplotlib", |
| 63 | ], |
Brian Silverman | 69120d7 | 2016-03-08 16:56:16 -0500 | [diff] [blame] | 64 | ) |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 65 | |
| 66 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 67 | name = "drivetrain", |
| 68 | srcs = [ |
| 69 | "drivetrain.py", |
| 70 | ], |
| 71 | restricted_to = ["//tools:k8"], |
| 72 | deps = [ |
| 73 | ":controls", |
| 74 | ":python_init", |
| 75 | "@matplotlib", |
| 76 | ], |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 77 | ) |
| 78 | |
| 79 | py_library( |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 80 | name = "libspline", |
| 81 | srcs = [ |
| 82 | "libspline.py", |
| 83 | ], |
| 84 | data = [ |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 85 | "//frc971/control_loops/drivetrain:spline.so", |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 86 | ], |
| 87 | ) |
| 88 | |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 89 | py_test( |
| 90 | name = "lib_spline_test", |
| 91 | srcs = [ |
| 92 | "lib_spline_test.py", |
| 93 | ], |
| 94 | deps = [ |
| 95 | ":libspline", |
| 96 | ] |
| 97 | ) |
| 98 | |
Alex Perry | 2076263 | 2019-01-21 17:48:02 -0500 | [diff] [blame] | 99 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 100 | name = "polydrivetrain", |
| 101 | srcs = [ |
| 102 | "polydrivetrain.py", |
| 103 | ], |
| 104 | restricted_to = ["//tools:k8"], |
| 105 | deps = [ |
| 106 | ":controls", |
| 107 | ":drivetrain", |
| 108 | ":python_init", |
| 109 | "//external:python-glog", |
| 110 | ], |
| 111 | ) |
| 112 | |
| 113 | py_library( |
| 114 | name = "python_init", |
| 115 | srcs = ["__init__.py"], |
| 116 | visibility = ["//visibility:public"], |
| 117 | deps = ["//frc971/control_loops:python_init"], |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 118 | ) |
Austin Schuh | 35d1987 | 2018-11-30 15:50:47 +1100 | [diff] [blame] | 119 | |
| 120 | py_binary( |
| 121 | name = "spline", |
| 122 | srcs = [ |
| 123 | "spline.py", |
| 124 | ], |
| 125 | legacy_create_init = False, |
| 126 | restricted_to = ["//tools:k8"], |
| 127 | deps = [ |
| 128 | "//external:python-gflags", |
| 129 | "//external:python-glog", |
| 130 | "//frc971/control_loops/python:controls", |
Austin Schuh | 44aa914 | 2018-12-03 21:07:23 +1100 | [diff] [blame] | 131 | "//y2018/control_loops/python:polydrivetrain_lib", |
Austin Schuh | 35d1987 | 2018-11-30 15:50:47 +1100 | [diff] [blame] | 132 | "@matplotlib", |
| 133 | ], |
| 134 | ) |
Austin Schuh | b5d302f | 2019-01-20 20:51:19 -0800 | [diff] [blame] | 135 | |
| 136 | py_library( |
| 137 | name = "linear_system", |
| 138 | srcs = ["linear_system.py"], |
| 139 | restricted_to = ["//tools:k8"], |
| 140 | visibility = ["//visibility:public"], |
| 141 | deps = [ |
| 142 | ":controls", |
| 143 | "//aos/util:py_trapezoid_profile", |
| 144 | "//frc971/control_loops:python_init", |
| 145 | "@matplotlib", |
| 146 | ], |
| 147 | ) |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame^] | 148 | |
| 149 | py_library( |
| 150 | name = "angular_system", |
| 151 | srcs = ["angular_system.py"], |
| 152 | restricted_to = ["//tools:k8"], |
| 153 | visibility = ["//visibility:public"], |
| 154 | deps = [ |
| 155 | ":controls", |
| 156 | "//aos/util:py_trapezoid_profile", |
| 157 | "//frc971/control_loops:python_init", |
| 158 | "@matplotlib", |
| 159 | ], |
| 160 | ) |