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