Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//y2016:__subpackages__"]) |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 2 | |
| 3 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 4 | name = "drivetrain", |
| 5 | srcs = [ |
| 6 | "drivetrain.py", |
| 7 | ], |
| 8 | legacy_create_init = False, |
| 9 | restricted_to = ["//tools:k8"], |
| 10 | deps = [ |
| 11 | ":python_init", |
| 12 | "//external:python-gflags", |
| 13 | "//external:python-glog", |
| 14 | "//frc971/control_loops/python:drivetrain", |
| 15 | ], |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 19 | name = "polydrivetrain", |
| 20 | srcs = [ |
| 21 | "drivetrain.py", |
| 22 | "polydrivetrain.py", |
| 23 | ], |
| 24 | legacy_create_init = False, |
| 25 | restricted_to = ["//tools:k8"], |
| 26 | deps = [ |
| 27 | ":python_init", |
| 28 | "//external:python-gflags", |
| 29 | "//external:python-glog", |
| 30 | "//frc971/control_loops/python:polydrivetrain", |
| 31 | ], |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 32 | ) |
| 33 | |
| 34 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 35 | 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 | ], |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 46 | ) |
Comran Morshed | 2a97bc8 | 2016-01-16 17:27:01 +0000 | [diff] [blame] | 47 | |
| 48 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 49 | name = "shooter", |
| 50 | srcs = [ |
| 51 | "shooter.py", |
| 52 | ], |
| 53 | legacy_create_init = False, |
| 54 | restricted_to = ["//tools:k8"], |
| 55 | deps = [ |
| 56 | ":python_init", |
| 57 | "//external:python-gflags", |
| 58 | "//external:python-glog", |
| 59 | "//frc971/control_loops/python:controls", |
| 60 | "@matplotlib", |
| 61 | ], |
Comran Morshed | 52f9a1f | 2016-02-03 19:53:50 +0000 | [diff] [blame] | 62 | ) |
| 63 | |
| 64 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 65 | name = "intake", |
| 66 | srcs = [ |
| 67 | "intake.py", |
| 68 | ], |
| 69 | legacy_create_init = False, |
| 70 | restricted_to = ["//tools:k8"], |
| 71 | deps = [ |
| 72 | ":python_init", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 73 | "//aos/util:py_trapezoid_profile", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 74 | "//external:python-gflags", |
| 75 | "//external:python-glog", |
| 76 | "//frc971/control_loops/python:controls", |
| 77 | "@matplotlib", |
| 78 | ], |
Comran Morshed | 2ae094e | 2016-01-23 20:43:20 +0000 | [diff] [blame] | 79 | ) |
| 80 | |
| 81 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 82 | name = "shoulder", |
| 83 | srcs = [ |
| 84 | "shoulder.py", |
| 85 | ], |
| 86 | legacy_create_init = False, |
| 87 | restricted_to = ["//tools:k8"], |
| 88 | deps = [ |
| 89 | ":python_init", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 90 | "//aos/util:py_trapezoid_profile", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 91 | "//external:python-gflags", |
| 92 | "//external:python-glog", |
| 93 | "//frc971/control_loops/python:controls", |
| 94 | "@matplotlib", |
| 95 | ], |
Comran Morshed | 2ae094e | 2016-01-23 20:43:20 +0000 | [diff] [blame] | 96 | ) |
| 97 | |
| 98 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 99 | name = "wrist", |
| 100 | srcs = [ |
| 101 | "wrist.py", |
| 102 | ], |
| 103 | legacy_create_init = False, |
| 104 | restricted_to = ["//tools:k8"], |
| 105 | deps = [ |
| 106 | ":python_init", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 107 | "//aos/util:py_trapezoid_profile", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 108 | "//external:python-gflags", |
| 109 | "//external:python-glog", |
| 110 | "//frc971/control_loops/python:controls", |
| 111 | "@matplotlib", |
| 112 | ], |
Austin Schuh | a88c407 | 2016-02-06 14:31:03 -0800 | [diff] [blame] | 113 | ) |
| 114 | |
| 115 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 116 | name = "wrist_lib", |
| 117 | srcs = [ |
| 118 | "wrist.py", |
| 119 | ], |
| 120 | restricted_to = ["//tools:k8"], |
| 121 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 122 | "//aos/util:py_trapezoid_profile", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 123 | "//external:python-gflags", |
| 124 | "//external:python-glog", |
| 125 | "//frc971/control_loops/python:controls", |
| 126 | ], |
Austin Schuh | a88c407 | 2016-02-06 14:31:03 -0800 | [diff] [blame] | 127 | ) |
| 128 | |
| 129 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 130 | name = "shoulder_lib", |
| 131 | srcs = [ |
| 132 | "shoulder.py", |
| 133 | ], |
| 134 | restricted_to = ["//tools:k8"], |
| 135 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 136 | "//aos/util:py_trapezoid_profile", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 137 | "//external:python-gflags", |
| 138 | "//external:python-glog", |
| 139 | "//frc971/control_loops/python:controls", |
| 140 | "@matplotlib", |
| 141 | ], |
Austin Schuh | a88c407 | 2016-02-06 14:31:03 -0800 | [diff] [blame] | 142 | ) |
| 143 | |
| 144 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 145 | name = "arm_lib", |
| 146 | srcs = [ |
| 147 | "arm.py", |
| 148 | ], |
| 149 | restricted_to = ["//tools:k8"], |
| 150 | deps = [ |
| 151 | ":shoulder_lib", |
| 152 | ":wrist_lib", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 153 | "//aos/util:py_trapezoid_profile", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 154 | "//external:python-gflags", |
| 155 | "//external:python-glog", |
| 156 | "//frc971/control_loops/python:controls", |
| 157 | "@matplotlib", |
| 158 | ], |
Austin Schuh | a88c407 | 2016-02-06 14:31:03 -0800 | [diff] [blame] | 159 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 160 | |
Austin Schuh | a88c407 | 2016-02-06 14:31:03 -0800 | [diff] [blame] | 161 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 162 | name = "arm", |
| 163 | srcs = [ |
| 164 | "arm.py", |
| 165 | ], |
| 166 | legacy_create_init = False, |
| 167 | restricted_to = ["//tools:k8"], |
| 168 | deps = [ |
| 169 | ":python_init", |
| 170 | ":shoulder_lib", |
| 171 | ":wrist_lib", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 172 | "//aos/util:py_trapezoid_profile", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 173 | "//external:python-gflags", |
| 174 | "//external:python-glog", |
| 175 | "//frc971/control_loops/python:controls", |
| 176 | ], |
| 177 | ) |
| 178 | |
| 179 | py_library( |
| 180 | name = "python_init", |
| 181 | srcs = ["__init__.py"], |
| 182 | visibility = ["//visibility:public"], |
| 183 | deps = ["//y2016/control_loops:python_init"], |
Comran Morshed | 2a97bc8 | 2016-01-16 17:27:01 +0000 | [diff] [blame] | 184 | ) |