Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 2 | |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 3 | load("//aos/build:queues.bzl", "queue_library") |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 4 | load("//tools:environments.bzl", "mcu_cpus") |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 5 | |
| 6 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 7 | name = "team_number_test_environment", |
| 8 | testonly = True, |
| 9 | srcs = [ |
| 10 | "team_number_test_environment.cc", |
| 11 | ], |
| 12 | hdrs = [ |
| 13 | "team_number_test_environment.h", |
| 14 | ], |
| 15 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 16 | "//aos/network:team_number", |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 17 | "//aos/testing:googletest", |
| 18 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 19 | ) |
| 20 | |
| 21 | cc_test( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 22 | name = "hybrid_state_feedback_loop_test", |
| 23 | srcs = [ |
| 24 | "hybrid_state_feedback_loop_test.cc", |
| 25 | ], |
| 26 | deps = [ |
| 27 | ":hybrid_state_feedback_loop", |
| 28 | "//aos/testing:googletest", |
| 29 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 30 | ) |
| 31 | |
| 32 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 33 | name = "hall_effect_tracker", |
| 34 | hdrs = [ |
| 35 | "hall_effect_tracker.h", |
| 36 | ], |
| 37 | deps = [ |
| 38 | ":queues", |
| 39 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 40 | ) |
| 41 | |
| 42 | queue_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 43 | name = "queues", |
| 44 | srcs = [ |
| 45 | "control_loops.q", |
| 46 | ], |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 47 | compatible_with = [ |
| 48 | "//tools:armhf-debian", |
| 49 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 50 | ) |
| 51 | |
| 52 | cc_test( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 53 | name = "position_sensor_sim_test", |
| 54 | srcs = [ |
| 55 | "position_sensor_sim_test.cc", |
| 56 | ], |
| 57 | deps = [ |
| 58 | ":position_sensor_sim", |
| 59 | ":queues", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 60 | "//aos/logging", |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 61 | "//aos/testing:googletest", |
| 62 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 63 | ) |
| 64 | |
| 65 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 66 | name = "position_sensor_sim", |
| 67 | testonly = True, |
| 68 | srcs = [ |
| 69 | "position_sensor_sim.cc", |
| 70 | ], |
| 71 | hdrs = [ |
| 72 | "position_sensor_sim.h", |
| 73 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 74 | linkopts = [ |
| 75 | "-lm", |
| 76 | ], |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 77 | deps = [ |
| 78 | ":gaussian_noise", |
| 79 | ":queues", |
| 80 | "//aos/testing:random_seed", |
Philipp Schrader | b3a057e | 2018-03-10 18:59:40 -0800 | [diff] [blame] | 81 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 82 | ) |
| 83 | |
| 84 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 85 | name = "gaussian_noise", |
| 86 | srcs = [ |
| 87 | "gaussian_noise.cc", |
| 88 | ], |
| 89 | hdrs = [ |
| 90 | "gaussian_noise.h", |
| 91 | ], |
Philipp Schrader | b3a057e | 2018-03-10 18:59:40 -0800 | [diff] [blame] | 92 | linkopts = [ |
| 93 | "-lm", |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 94 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 95 | ) |
| 96 | |
| 97 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 98 | name = "coerce_goal_uc", |
| 99 | srcs = [ |
| 100 | "coerce_goal.cc", |
| 101 | ], |
| 102 | hdrs = [ |
| 103 | "coerce_goal.h", |
| 104 | ], |
| 105 | restricted_to = mcu_cpus, |
| 106 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 107 | "//aos/controls:polytope_uc", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 108 | "//third_party/eigen", |
| 109 | ], |
| 110 | ) |
| 111 | |
| 112 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 113 | name = "coerce_goal", |
| 114 | srcs = [ |
| 115 | "coerce_goal.cc", |
| 116 | ], |
| 117 | hdrs = [ |
| 118 | "coerce_goal.h", |
| 119 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 120 | linkopts = [ |
| 121 | "-lm", |
| 122 | ], |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 123 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 124 | "//aos/controls:polytope", |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 125 | "//third_party/eigen", |
| 126 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 127 | ) |
| 128 | |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 129 | # TODO(austin): Select isn't working right. We should be able to remove |
| 130 | # logging conditionally with select and have CPU constraints work correctly. |
| 131 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 132 | name = "state_feedback_loop_uc", |
| 133 | hdrs = [ |
| 134 | "state_feedback_loop.h", |
| 135 | ], |
Brian Silverman | 1613b6e | 2018-09-03 19:10:37 -0700 | [diff] [blame] | 136 | restricted_to = mcu_cpus, |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 137 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 138 | "//aos:macros", |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 139 | "//third_party/eigen", |
| 140 | ], |
Austin Schuh | 4cc4fe2 | 2017-11-23 19:13:09 -0800 | [diff] [blame] | 141 | ) |
| 142 | |
| 143 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 144 | name = "state_feedback_loop", |
| 145 | hdrs = [ |
| 146 | "state_feedback_loop.h", |
| 147 | ], |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 148 | compatible_with = [ |
| 149 | "//tools:armhf-debian", |
| 150 | ], |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 151 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 152 | "//aos:macros", |
| 153 | "//aos/logging", |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 154 | "//third_party/eigen", |
| 155 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 156 | ) |
Brian Silverman | 2b1957a | 2016-02-14 20:29:57 -0500 | [diff] [blame] | 157 | |
| 158 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 159 | name = "hybrid_state_feedback_loop", |
| 160 | hdrs = [ |
| 161 | "hybrid_state_feedback_loop.h", |
| 162 | ], |
| 163 | deps = [ |
| 164 | ":state_feedback_loop", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 165 | "//aos:macros", |
| 166 | "//aos/controls:control_loop", |
| 167 | "//aos/logging", |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 168 | "//third_party/eigen", |
| 169 | ], |
Brian Silverman | 2b1957a | 2016-02-14 20:29:57 -0500 | [diff] [blame] | 170 | ) |
Austin Schuh | acd335a | 2017-01-01 16:20:54 -0800 | [diff] [blame] | 171 | |
| 172 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 173 | name = "simple_capped_state_feedback_loop", |
| 174 | hdrs = [ |
| 175 | "simple_capped_state_feedback_loop.h", |
| 176 | ], |
| 177 | deps = [ |
| 178 | ":state_feedback_loop", |
| 179 | "//third_party/eigen", |
| 180 | ], |
| 181 | ) |
| 182 | |
| 183 | cc_library( |
| 184 | name = "runge_kutta", |
| 185 | hdrs = [ |
| 186 | "runge_kutta.h", |
| 187 | ], |
| 188 | deps = [ |
| 189 | "//third_party/eigen", |
| 190 | ], |
Austin Schuh | acd335a | 2017-01-01 16:20:54 -0800 | [diff] [blame] | 191 | ) |
| 192 | |
| 193 | cc_test( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 194 | name = "runge_kutta_test", |
| 195 | srcs = [ |
| 196 | "runge_kutta_test.cc", |
| 197 | ], |
| 198 | deps = [ |
| 199 | ":runge_kutta", |
| 200 | "//aos/testing:googletest", |
| 201 | "//third_party/eigen", |
| 202 | ], |
Austin Schuh | acd335a | 2017-01-01 16:20:54 -0800 | [diff] [blame] | 203 | ) |
Austin Schuh | 473a565 | 2017-02-05 01:30:42 -0800 | [diff] [blame] | 204 | |
Austin Schuh | 173a159 | 2018-12-19 16:20:54 +1100 | [diff] [blame^] | 205 | cc_library( |
| 206 | name = "fixed_quadrature", |
| 207 | hdrs = [ |
| 208 | "fixed_quadrature.h", |
| 209 | ], |
| 210 | ) |
| 211 | |
| 212 | cc_test( |
| 213 | name = "fixed_quadrature_test", |
| 214 | srcs = [ |
| 215 | "fixed_quadrature_test.cc", |
| 216 | ], |
| 217 | deps = [ |
| 218 | ":fixed_quadrature", |
| 219 | "//aos/testing:googletest", |
| 220 | ], |
| 221 | ) |
| 222 | |
Austin Schuh | 3634ed3 | 2017-02-05 16:28:49 -0800 | [diff] [blame] | 223 | queue_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 224 | name = "profiled_subsystem_queue", |
| 225 | srcs = [ |
| 226 | "profiled_subsystem.q", |
| 227 | ], |
| 228 | deps = [ |
| 229 | ":queues", |
| 230 | ], |
Austin Schuh | 3634ed3 | 2017-02-05 16:28:49 -0800 | [diff] [blame] | 231 | ) |
| 232 | |
Austin Schuh | 473a565 | 2017-02-05 01:30:42 -0800 | [diff] [blame] | 233 | cc_library( |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 234 | name = "profiled_subsystem", |
| 235 | srcs = [ |
| 236 | "profiled_subsystem.cc", |
| 237 | ], |
| 238 | hdrs = [ |
| 239 | "profiled_subsystem.h", |
| 240 | ], |
| 241 | deps = [ |
| 242 | ":profiled_subsystem_queue", |
| 243 | ":simple_capped_state_feedback_loop", |
| 244 | ":state_feedback_loop", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 245 | "//aos/controls:control_loop", |
| 246 | "//aos/util:trapezoid_profile", |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 247 | "//frc971/zeroing", |
| 248 | ], |
Austin Schuh | 473a565 | 2017-02-05 01:30:42 -0800 | [diff] [blame] | 249 | ) |
Austin Schuh | a647d60 | 2018-02-18 14:05:15 -0800 | [diff] [blame] | 250 | |
| 251 | cc_library( |
| 252 | name = "jacobian", |
| 253 | hdrs = [ |
| 254 | "jacobian.h", |
| 255 | ], |
| 256 | deps = [ |
| 257 | "//third_party/eigen", |
| 258 | ], |
| 259 | ) |
| 260 | |
| 261 | cc_test( |
| 262 | name = "jacobian_test", |
| 263 | srcs = [ |
| 264 | "jacobian_test.cc", |
| 265 | ], |
| 266 | deps = [ |
| 267 | ":jacobian", |
| 268 | "//aos/testing:googletest", |
| 269 | "//third_party/eigen", |
| 270 | ], |
| 271 | ) |
| 272 | |
Austin Schuh | 0378513 | 2018-02-19 18:29:06 -0800 | [diff] [blame] | 273 | cc_library( |
| 274 | name = "dlqr", |
| 275 | hdrs = [ |
| 276 | "dlqr.h", |
| 277 | ], |
| 278 | visibility = ["//visibility:public"], |
| 279 | deps = [ |
| 280 | "//third_party/eigen", |
| 281 | "@slycot_repo//:slicot", |
| 282 | ], |
| 283 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 284 | |
| 285 | py_library( |
| 286 | name = "python_init", |
| 287 | srcs = ["__init__.py"], |
| 288 | visibility = ["//visibility:public"], |
| 289 | deps = ["//frc971:python_init"], |
| 290 | ) |