Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 2 | |
Alex Perry | 2124ae8 | 2020-03-07 14:19:06 -0800 | [diff] [blame] | 3 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_ts_library") |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 4 | load("//aos:config.bzl", "aos_config") |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 5 | load("//tools:environments.bzl", "mcu_cpus") |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 6 | load("//tools/build_rules:select.bzl", "compiler_select", "cpu_select") |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 7 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 8 | flatbuffer_cc_library( |
| 9 | name = "drivetrain_goal_fbs", |
| 10 | srcs = ["drivetrain_goal.fbs"], |
| 11 | compatible_with = mcu_cpus, |
| 12 | gen_reflections = 1, |
| 13 | includes = ["//frc971/control_loops:control_loops_fbs_includes"], |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 14 | ) |
| 15 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 16 | flatbuffer_cc_library( |
| 17 | name = "drivetrain_output_fbs", |
| 18 | srcs = ["drivetrain_output.fbs"], |
| 19 | compatible_with = mcu_cpus, |
| 20 | gen_reflections = 1, |
| 21 | ) |
| 22 | |
| 23 | flatbuffer_cc_library( |
| 24 | name = "drivetrain_position_fbs", |
| 25 | srcs = ["drivetrain_position.fbs"], |
| 26 | compatible_with = mcu_cpus, |
| 27 | gen_reflections = 1, |
| 28 | ) |
| 29 | |
| 30 | flatbuffer_cc_library( |
| 31 | name = "drivetrain_status_fbs", |
| 32 | srcs = ["drivetrain_status.fbs"], |
| 33 | compatible_with = mcu_cpus, |
| 34 | gen_reflections = 1, |
| 35 | includes = ["//frc971/control_loops:control_loops_fbs_includes"], |
| 36 | ) |
| 37 | |
Alex Perry | 2124ae8 | 2020-03-07 14:19:06 -0800 | [diff] [blame] | 38 | flatbuffer_ts_library( |
| 39 | name = "drivetrain_status_ts_fbs", |
| 40 | srcs = ["drivetrain_status.fbs"], |
| 41 | includes = ["//frc971/control_loops:control_loops_fbs_includes"], |
| 42 | ) |
| 43 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 44 | genrule( |
| 45 | name = "drivetrain_goal_float_fbs_generated", |
| 46 | srcs = ["drivetrain_goal.fbs"], |
| 47 | outs = ["drivetrain_goal_float.fbs"], |
| 48 | cmd = "cat $(SRCS) | sed 's/double/float/g' > $(OUTS)", |
| 49 | compatible_with = mcu_cpus, |
| 50 | ) |
| 51 | |
| 52 | genrule( |
| 53 | name = "drivetrain_position_float_fbs_generated", |
| 54 | srcs = ["drivetrain_position.fbs"], |
| 55 | outs = ["drivetrain_position_float.fbs"], |
| 56 | cmd = "cat $(SRCS) | sed 's/double/float/g' > $(OUTS)", |
| 57 | compatible_with = mcu_cpus, |
| 58 | ) |
| 59 | |
| 60 | genrule( |
| 61 | name = "drivetrain_output_float_fbs_generated", |
| 62 | srcs = ["drivetrain_output.fbs"], |
| 63 | outs = ["drivetrain_output_float.fbs"], |
| 64 | cmd = "cat $(SRCS) | sed 's/double/float/g' > $(OUTS)", |
| 65 | compatible_with = mcu_cpus, |
| 66 | ) |
| 67 | |
| 68 | genrule( |
| 69 | name = "drivetrain_status_float_fbs_generated", |
| 70 | srcs = ["drivetrain_status.fbs"], |
| 71 | outs = ["drivetrain_status_float.fbs"], |
| 72 | cmd = "cat $(SRCS) | sed 's/double/float/g' > $(OUTS)", |
| 73 | compatible_with = mcu_cpus, |
| 74 | ) |
| 75 | |
| 76 | flatbuffer_cc_library( |
| 77 | name = "drivetrain_goal_float_fbs", |
| 78 | srcs = ["drivetrain_goal_float.fbs"], |
| 79 | compatible_with = mcu_cpus, |
| 80 | gen_reflections = 1, |
| 81 | includes = ["//frc971/control_loops:control_loops_fbs_includes"], |
| 82 | ) |
| 83 | |
| 84 | flatbuffer_cc_library( |
| 85 | name = "drivetrain_output_float_fbs", |
| 86 | srcs = ["drivetrain_output_float.fbs"], |
| 87 | compatible_with = mcu_cpus, |
| 88 | gen_reflections = 1, |
| 89 | ) |
| 90 | |
| 91 | flatbuffer_cc_library( |
| 92 | name = "drivetrain_position_float_fbs", |
| 93 | srcs = ["drivetrain_position_float.fbs"], |
| 94 | compatible_with = mcu_cpus, |
| 95 | gen_reflections = 1, |
| 96 | ) |
| 97 | |
| 98 | flatbuffer_cc_library( |
| 99 | name = "drivetrain_status_float_fbs", |
| 100 | srcs = ["drivetrain_status_float.fbs"], |
| 101 | compatible_with = mcu_cpus, |
| 102 | gen_reflections = 1, |
| 103 | includes = ["//frc971/control_loops:control_loops_fbs_includes"], |
| 104 | ) |
| 105 | |
| 106 | aos_config( |
James Kuszmaul | 74d8f97 | 2020-02-11 17:13:17 -0800 | [diff] [blame] | 107 | name = "simulation_channels", |
| 108 | src = "drivetrain_simulation_channels.json", |
| 109 | flatbuffers = [ |
| 110 | ":drivetrain_status_fbs", |
| 111 | ], |
| 112 | visibility = ["//visibility:public"], |
| 113 | ) |
| 114 | |
| 115 | aos_config( |
| 116 | name = "simulation_config", |
| 117 | src = "drivetrain_simulation_config.json", |
| 118 | visibility = ["//visibility:public"], |
| 119 | deps = [ |
| 120 | ":config", |
| 121 | ":simulation_channels", |
| 122 | ], |
| 123 | ) |
| 124 | |
| 125 | aos_config( |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 126 | name = "config", |
| 127 | src = "drivetrain_config.json", |
| 128 | flatbuffers = [ |
| 129 | ":drivetrain_goal_fbs", |
| 130 | ":drivetrain_output_fbs", |
| 131 | ":drivetrain_status_fbs", |
| 132 | ":drivetrain_position_fbs", |
| 133 | ":localizer_fbs", |
Tyler Chatow | 24b5db1 | 2020-01-06 21:16:56 -0800 | [diff] [blame] | 134 | "//frc971/queues:gyro_fbs", |
| 135 | "//frc971/queues:gyro_uid_fbs", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 136 | "//frc971/wpilib:imu_fbs", |
Austin Schuh | ac17fba | 2020-03-28 15:55:33 -0700 | [diff] [blame] | 137 | "//frc971/wpilib:imu_batch_fbs", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 138 | ], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 139 | visibility = ["//visibility:public"], |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 140 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 141 | "//aos/robot_state:config", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 142 | ], |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 143 | ) |
| 144 | |
| 145 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 146 | name = "drivetrain_config", |
| 147 | hdrs = [ |
| 148 | "drivetrain_config.h", |
| 149 | ], |
| 150 | deps = [ |
| 151 | "//frc971:shifter_hall_effect", |
Austin Schuh | a062edb | 2019-01-03 13:17:13 -0800 | [diff] [blame] | 152 | "//frc971/control_loops:hybrid_state_feedback_loop", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 153 | "//frc971/control_loops:state_feedback_loop", |
| 154 | ], |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 155 | ) |
| 156 | |
| 157 | cc_library( |
James Kuszmaul | 2ed7b3c | 2019-02-09 18:26:19 -0800 | [diff] [blame] | 158 | name = "hybrid_ekf", |
| 159 | hdrs = ["hybrid_ekf.h"], |
| 160 | deps = [ |
| 161 | ":drivetrain_config", |
James Kuszmaul | 3c5b4d3 | 2020-02-11 17:22:14 -0800 | [diff] [blame] | 162 | "//aos:math", |
James Kuszmaul | 2ed7b3c | 2019-02-09 18:26:19 -0800 | [diff] [blame] | 163 | "//aos/containers:priority_queue", |
James Kuszmaul | fedc461 | 2019-03-10 11:24:51 -0700 | [diff] [blame] | 164 | "//aos/util:math", |
James Kuszmaul | 2ed7b3c | 2019-02-09 18:26:19 -0800 | [diff] [blame] | 165 | "//frc971/control_loops:c2d", |
| 166 | "//frc971/control_loops:runge_kutta", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 167 | "@org_tuxfamily_eigen//:eigen", |
James Kuszmaul | 2ed7b3c | 2019-02-09 18:26:19 -0800 | [diff] [blame] | 168 | ], |
| 169 | ) |
| 170 | |
| 171 | cc_test( |
| 172 | name = "hybrid_ekf_test", |
| 173 | srcs = ["hybrid_ekf_test.cc"], |
| 174 | deps = [ |
| 175 | ":drivetrain_test_lib", |
| 176 | ":hybrid_ekf", |
| 177 | ":trajectory", |
| 178 | "//aos/testing:googletest", |
| 179 | "//aos/testing:random_seed", |
| 180 | "//aos/testing:test_shm", |
| 181 | ], |
| 182 | ) |
| 183 | |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 184 | flatbuffer_cc_library( |
| 185 | name = "localizer_fbs", |
| 186 | srcs = ["localizer.fbs"], |
| 187 | gen_reflections = 1, |
James Kuszmaul | ef428a0 | 2019-03-02 22:19:41 -0800 | [diff] [blame] | 188 | ) |
| 189 | |
James Kuszmaul | 2ed7b3c | 2019-02-09 18:26:19 -0800 | [diff] [blame] | 190 | cc_library( |
James Kuszmaul | 3431d62 | 2019-02-17 17:07:44 -0800 | [diff] [blame] | 191 | name = "localizer", |
| 192 | hdrs = ["localizer.h"], |
| 193 | deps = [ |
| 194 | ":drivetrain_config", |
James Kuszmaul | 3c5b4d3 | 2020-02-11 17:22:14 -0800 | [diff] [blame] | 195 | ":drivetrain_status_fbs", |
James Kuszmaul | 3431d62 | 2019-02-17 17:07:44 -0800 | [diff] [blame] | 196 | ":hybrid_ekf", |
James Kuszmaul | 5398fae | 2020-02-17 16:44:03 -0800 | [diff] [blame] | 197 | "//frc971/control_loops:control_loops_fbs", |
James Kuszmaul | 5bc6fc9 | 2019-03-01 21:50:06 -0800 | [diff] [blame] | 198 | "//frc971/control_loops:pose", |
James Kuszmaul | 3431d62 | 2019-02-17 17:07:44 -0800 | [diff] [blame] | 199 | ], |
| 200 | ) |
| 201 | |
| 202 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 203 | name = "gear", |
| 204 | hdrs = [ |
| 205 | "gear.h", |
| 206 | ], |
| 207 | compatible_with = mcu_cpus, |
Austin Schuh | 093535c | 2016-03-05 23:21:00 -0800 | [diff] [blame] | 208 | ) |
| 209 | |
| 210 | cc_library( |
Alex Perry | 731b460 | 2019-02-02 22:13:01 -0800 | [diff] [blame] | 211 | name = "splinedrivetrain", |
| 212 | srcs = [ |
| 213 | "splinedrivetrain.cc", |
| 214 | ], |
| 215 | hdrs = [ |
| 216 | "splinedrivetrain.h", |
| 217 | ], |
| 218 | deps = [ |
James Kuszmaul | 2ed7b3c | 2019-02-09 18:26:19 -0800 | [diff] [blame] | 219 | ":distance_spline", |
Alex Perry | 731b460 | 2019-02-02 22:13:01 -0800 | [diff] [blame] | 220 | ":drivetrain_config", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 221 | ":drivetrain_goal_fbs", |
| 222 | ":drivetrain_output_fbs", |
| 223 | ":drivetrain_status_fbs", |
Alex Perry | 731b460 | 2019-02-02 22:13:01 -0800 | [diff] [blame] | 224 | ":spline", |
Alex Perry | 731b460 | 2019-02-02 22:13:01 -0800 | [diff] [blame] | 225 | ":trajectory", |
Austin Schuh | 3d9ccd7 | 2020-08-01 15:42:40 -0700 | [diff] [blame^] | 226 | "//aos:condition", |
Alex Perry | 1ec3452 | 2019-02-17 22:44:10 -0800 | [diff] [blame] | 227 | "//aos:init", |
James Kuszmaul | c73bb22 | 2019-04-07 12:15:35 -0700 | [diff] [blame] | 228 | "//aos/util:math", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 229 | "//frc971/control_loops:control_loops_fbs", |
James Kuszmaul | 2ed7b3c | 2019-02-09 18:26:19 -0800 | [diff] [blame] | 230 | ], |
Alex Perry | 731b460 | 2019-02-02 22:13:01 -0800 | [diff] [blame] | 231 | ) |
| 232 | |
| 233 | cc_library( |
James Kuszmaul | e39cbcf | 2019-02-27 20:48:34 -0800 | [diff] [blame] | 234 | name = "line_follow_drivetrain", |
| 235 | srcs = [ |
| 236 | "line_follow_drivetrain.cc", |
| 237 | ], |
| 238 | hdrs = [ |
| 239 | "line_follow_drivetrain.h", |
| 240 | ], |
| 241 | deps = [ |
| 242 | ":drivetrain_config", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 243 | ":drivetrain_goal_fbs", |
| 244 | ":drivetrain_output_fbs", |
| 245 | ":drivetrain_status_fbs", |
James Kuszmaul | 5bc6fc9 | 2019-03-01 21:50:06 -0800 | [diff] [blame] | 246 | ":localizer", |
James Kuszmaul | e39cbcf | 2019-02-27 20:48:34 -0800 | [diff] [blame] | 247 | "//aos:math", |
| 248 | "//aos/util:math", |
| 249 | "//frc971/control_loops:c2d", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 250 | "//frc971/control_loops:control_loops_fbs", |
James Kuszmaul | e39cbcf | 2019-02-27 20:48:34 -0800 | [diff] [blame] | 251 | "//frc971/control_loops:dlqr", |
| 252 | "//frc971/control_loops:pose", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 253 | "//frc971/control_loops:profiled_subsystem_fbs", |
| 254 | "//y2019/control_loops/superstructure:superstructure_goal_fbs", |
| 255 | "@org_tuxfamily_eigen//:eigen", |
James Kuszmaul | e39cbcf | 2019-02-27 20:48:34 -0800 | [diff] [blame] | 256 | ], |
| 257 | ) |
| 258 | |
| 259 | cc_test( |
| 260 | name = "line_follow_drivetrain_test", |
| 261 | srcs = ["line_follow_drivetrain_test.cc"], |
| 262 | linkstatic = True, |
| 263 | restricted_to = ["//tools:k8"], |
| 264 | deps = [ |
| 265 | ":drivetrain_config", |
| 266 | ":drivetrain_test_lib", |
| 267 | ":line_follow_drivetrain", |
| 268 | ":trajectory", |
| 269 | "//aos/testing:googletest", |
| 270 | "//aos/testing:test_shm", |
| 271 | "//third_party/matplotlib-cpp", |
| 272 | "@com_github_gflags_gflags//:gflags", |
| 273 | ], |
| 274 | ) |
| 275 | |
| 276 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 277 | name = "ssdrivetrain", |
| 278 | srcs = [ |
| 279 | "ssdrivetrain.cc", |
| 280 | ], |
| 281 | hdrs = [ |
| 282 | "ssdrivetrain.h", |
| 283 | ], |
| 284 | deps = [ |
| 285 | ":drivetrain_config", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 286 | ":drivetrain_goal_fbs", |
| 287 | ":drivetrain_output_fbs", |
| 288 | ":drivetrain_status_fbs", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 289 | ":gear", |
James Kuszmaul | 3431d62 | 2019-02-17 17:07:44 -0800 | [diff] [blame] | 290 | ":localizer", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 291 | "//aos:math", |
| 292 | "//aos/controls:control_loop", |
| 293 | "//aos/controls:polytope", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 294 | "//aos/robot_state:robot_state_fbs", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 295 | "//aos/util:log_interval", |
| 296 | "//aos/util:trapezoid_profile", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 297 | "//frc971:shifter_hall_effect", |
| 298 | "//frc971/control_loops:coerce_goal", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 299 | "//frc971/control_loops:control_loops_fbs", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 300 | "//frc971/control_loops:state_feedback_loop", |
| 301 | ], |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 302 | ) |
| 303 | |
| 304 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 305 | name = "polydrivetrain", |
| 306 | srcs = [ |
| 307 | "polydrivetrain.cc", |
| 308 | ], |
| 309 | hdrs = [ |
| 310 | "polydrivetrain.h", |
| 311 | ], |
| 312 | deps = [ |
| 313 | ":drivetrain_config", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 314 | ":drivetrain_goal_fbs", |
| 315 | ":drivetrain_output_fbs", |
| 316 | ":drivetrain_position_fbs", |
| 317 | ":drivetrain_status_fbs", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 318 | ":gear", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 319 | "//aos:math", |
| 320 | "//aos/controls:polytope", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 321 | "//aos/robot_state:robot_state_fbs", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 322 | "//aos/util:log_interval", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 323 | "//frc971/control_loops:coerce_goal", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 324 | "//frc971/control_loops:control_loops_fbs", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 325 | "//frc971/control_loops:state_feedback_loop", |
| 326 | ], |
| 327 | ) |
| 328 | |
| 329 | cc_library( |
| 330 | name = "drivetrain_config_uc", |
| 331 | hdrs = [ |
| 332 | "drivetrain_config.h", |
| 333 | ], |
| 334 | restricted_to = mcu_cpus, |
| 335 | deps = [ |
| 336 | "//frc971:shifter_hall_effect", |
| 337 | "//frc971/control_loops:state_feedback_loop_uc", |
| 338 | ], |
| 339 | ) |
| 340 | |
| 341 | cc_library( |
| 342 | name = "polydrivetrain_uc", |
| 343 | srcs = [ |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 344 | "polydrivetrain.cc", |
| 345 | ], |
| 346 | hdrs = [ |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 347 | "polydrivetrain.h", |
| 348 | ], |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 349 | copts = ["-Wno-type-limits"], |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 350 | restricted_to = mcu_cpus, |
| 351 | deps = [ |
| 352 | ":drivetrain_config_uc", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 353 | ":drivetrain_goal_float_fbs", |
| 354 | ":drivetrain_output_float_fbs", |
| 355 | ":drivetrain_position_float_fbs", |
| 356 | ":drivetrain_status_float_fbs", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 357 | ":gear", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 358 | "//aos:math", |
| 359 | "//aos/controls:polytope_uc", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 360 | "//frc971/control_loops:coerce_goal_uc", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 361 | "//frc971/control_loops:control_loops_fbs", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 362 | "//frc971/control_loops:state_feedback_loop_uc", |
| 363 | ], |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 364 | ) |
| 365 | |
Austin Schuh | 05c5a61 | 2016-04-02 15:10:25 -0700 | [diff] [blame] | 366 | genrule( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 367 | name = "genrule_down_estimator", |
| 368 | outs = [ |
| 369 | "down_estimator.h", |
| 370 | "down_estimator.cc", |
| 371 | ], |
| 372 | cmd = "$(location //frc971/control_loops/python:down_estimator) $(OUTS)", |
| 373 | tools = [ |
| 374 | "//frc971/control_loops/python:down_estimator", |
| 375 | ], |
| 376 | visibility = ["//visibility:private"], |
Austin Schuh | 05c5a61 | 2016-04-02 15:10:25 -0700 | [diff] [blame] | 377 | ) |
| 378 | |
| 379 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 380 | name = "down_estimator", |
| 381 | srcs = [ |
| 382 | "down_estimator.cc", |
| 383 | ], |
| 384 | hdrs = [ |
| 385 | "down_estimator.h", |
| 386 | ], |
| 387 | deps = [ |
| 388 | "//frc971/control_loops:state_feedback_loop", |
| 389 | ], |
Austin Schuh | 05c5a61 | 2016-04-02 15:10:25 -0700 | [diff] [blame] | 390 | ) |
| 391 | |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 392 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 393 | name = "drivetrain_lib", |
| 394 | srcs = [ |
| 395 | "drivetrain.cc", |
| 396 | ], |
| 397 | hdrs = [ |
| 398 | "drivetrain.h", |
| 399 | ], |
| 400 | deps = [ |
| 401 | ":down_estimator", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 402 | ":drivetrain_goal_fbs", |
| 403 | ":drivetrain_output_fbs", |
| 404 | ":drivetrain_position_fbs", |
| 405 | ":drivetrain_status_fbs", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 406 | ":gear", |
James Kuszmaul | 3e1bb27 | 2020-01-17 18:38:19 -0800 | [diff] [blame] | 407 | ":improved_down_estimator", |
James Kuszmaul | e39cbcf | 2019-02-27 20:48:34 -0800 | [diff] [blame] | 408 | ":line_follow_drivetrain", |
James Kuszmaul | 3431d62 | 2019-02-17 17:07:44 -0800 | [diff] [blame] | 409 | ":localizer", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 410 | ":localizer_fbs", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 411 | ":polydrivetrain", |
Alex Perry | 731b460 | 2019-02-02 22:13:01 -0800 | [diff] [blame] | 412 | ":splinedrivetrain", |
James Kuszmaul | 2ed7b3c | 2019-02-09 18:26:19 -0800 | [diff] [blame] | 413 | ":ssdrivetrain", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 414 | "//aos/controls:control_loop", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 415 | "//aos/util:log_interval", |
Austin Schuh | 3a37846 | 2019-01-04 21:48:04 -0800 | [diff] [blame] | 416 | "//frc971/control_loops:runge_kutta", |
Tyler Chatow | 24b5db1 | 2020-01-06 21:16:56 -0800 | [diff] [blame] | 417 | "//frc971/queues:gyro_fbs", |
Austin Schuh | ac17fba | 2020-03-28 15:55:33 -0700 | [diff] [blame] | 418 | "//frc971/wpilib:imu_batch_fbs", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 419 | "//frc971/wpilib:imu_fbs", |
James Kuszmaul | 3e1bb27 | 2020-01-17 18:38:19 -0800 | [diff] [blame] | 420 | "//frc971/zeroing:imu_zeroer", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 421 | ], |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 422 | ) |
| 423 | |
James Kuszmaul | 109ed8d | 2019-02-17 21:41:04 -0800 | [diff] [blame] | 424 | cc_library( |
| 425 | name = "drivetrain_test_lib", |
| 426 | testonly = True, |
| 427 | srcs = ["drivetrain_test_lib.cc"], |
| 428 | hdrs = ["drivetrain_test_lib.h"], |
James Kuszmaul | 74d8f97 | 2020-02-11 17:13:17 -0800 | [diff] [blame] | 429 | defines = |
| 430 | cpu_select({ |
| 431 | "amd64": [ |
| 432 | "SUPPORT_PLOT=1", |
| 433 | ], |
| 434 | "arm": [], |
| 435 | }), |
James Kuszmaul | 109ed8d | 2019-02-17 21:41:04 -0800 | [diff] [blame] | 436 | deps = [ |
| 437 | ":drivetrain_config", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 438 | ":drivetrain_goal_fbs", |
| 439 | ":drivetrain_output_fbs", |
| 440 | ":drivetrain_position_fbs", |
| 441 | ":drivetrain_status_fbs", |
James Kuszmaul | 109ed8d | 2019-02-17 21:41:04 -0800 | [diff] [blame] | 442 | ":trajectory", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 443 | "//aos/events:event_loop", |
James Kuszmaul | 109ed8d | 2019-02-17 21:41:04 -0800 | [diff] [blame] | 444 | "//aos/testing:googletest", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 445 | "//frc971/control_loops:control_loops_fbs", |
James Kuszmaul | 109ed8d | 2019-02-17 21:41:04 -0800 | [diff] [blame] | 446 | "//frc971/control_loops:state_feedback_loop", |
Tyler Chatow | 24b5db1 | 2020-01-06 21:16:56 -0800 | [diff] [blame] | 447 | "//frc971/queues:gyro_fbs", |
James Kuszmaul | 3e1bb27 | 2020-01-17 18:38:19 -0800 | [diff] [blame] | 448 | "//frc971/wpilib:imu_fbs", |
Austin Schuh | ac17fba | 2020-03-28 15:55:33 -0700 | [diff] [blame] | 449 | "//frc971/wpilib:imu_batch_fbs", |
James Kuszmaul | 109ed8d | 2019-02-17 21:41:04 -0800 | [diff] [blame] | 450 | "//y2016:constants", |
| 451 | "//y2016/control_loops/drivetrain:polydrivetrain_plants", |
James Kuszmaul | 74d8f97 | 2020-02-11 17:13:17 -0800 | [diff] [blame] | 452 | ] + cpu_select({ |
| 453 | "amd64": [ |
| 454 | "//third_party/matplotlib-cpp", |
| 455 | ], |
| 456 | "arm": [], |
| 457 | }), |
James Kuszmaul | 109ed8d | 2019-02-17 21:41:04 -0800 | [diff] [blame] | 458 | ) |
| 459 | |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 460 | cc_test( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 461 | name = "drivetrain_lib_test", |
| 462 | srcs = [ |
| 463 | "drivetrain_lib_test.cc", |
| 464 | ], |
James Kuszmaul | 74d8f97 | 2020-02-11 17:13:17 -0800 | [diff] [blame] | 465 | data = ["simulation_config.json"], |
Alex Perry | 04300d6 | 2019-02-17 14:37:04 -0800 | [diff] [blame] | 466 | defines = |
| 467 | cpu_select({ |
| 468 | "amd64": [ |
| 469 | "SUPPORT_PLOT=1", |
| 470 | ], |
| 471 | "arm": [], |
| 472 | }), |
| 473 | linkstatic = True, |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 474 | deps = [ |
| 475 | ":drivetrain_config", |
| 476 | ":drivetrain_lib", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 477 | ":localizer_fbs", |
| 478 | ":drivetrain_goal_fbs", |
| 479 | ":drivetrain_status_fbs", |
| 480 | ":drivetrain_position_fbs", |
| 481 | ":drivetrain_output_fbs", |
James Kuszmaul | 109ed8d | 2019-02-17 21:41:04 -0800 | [diff] [blame] | 482 | ":drivetrain_test_lib", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 483 | "//aos/controls:control_loop_test", |
James Kuszmaul | 74d8f97 | 2020-02-11 17:13:17 -0800 | [diff] [blame] | 484 | "//aos/events/logging:logger", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 485 | "//aos/testing:googletest", |
Tyler Chatow | 24b5db1 | 2020-01-06 21:16:56 -0800 | [diff] [blame] | 486 | "//frc971/queues:gyro_fbs", |
James Kuszmaul | 3e1bb27 | 2020-01-17 18:38:19 -0800 | [diff] [blame] | 487 | "//frc971/wpilib:imu_fbs", |
Alex Perry | 04300d6 | 2019-02-17 14:37:04 -0800 | [diff] [blame] | 488 | ] + cpu_select({ |
| 489 | "amd64": [ |
| 490 | "//third_party/matplotlib-cpp", |
| 491 | ], |
| 492 | "arm": [], |
| 493 | }), |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 494 | ) |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 495 | |
| 496 | genrule( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 497 | name = "genrule_haptic_wheel", |
| 498 | outs = [ |
| 499 | "haptic_wheel.h", |
| 500 | "haptic_wheel.cc", |
| 501 | "integral_haptic_wheel.h", |
| 502 | "integral_haptic_wheel.cc", |
| 503 | "haptic_trigger.h", |
| 504 | "haptic_trigger.cc", |
| 505 | "integral_haptic_trigger.h", |
| 506 | "integral_haptic_trigger.cc", |
| 507 | ], |
| 508 | cmd = "$(location //frc971/control_loops/python:haptic_wheel) $(OUTS)", |
| 509 | compatible_with = mcu_cpus, |
| 510 | tools = [ |
| 511 | "//frc971/control_loops/python:haptic_wheel", |
| 512 | ], |
| 513 | visibility = ["//visibility:private"], |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 514 | ) |
| 515 | |
| 516 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 517 | name = "haptic_input_uc", |
| 518 | srcs = [ |
| 519 | "haptic_trigger.cc", |
| 520 | "haptic_wheel.cc", |
| 521 | "integral_haptic_trigger.cc", |
| 522 | "integral_haptic_wheel.cc", |
| 523 | ], |
| 524 | hdrs = [ |
| 525 | "haptic_trigger.h", |
| 526 | "haptic_wheel.h", |
| 527 | "integral_haptic_trigger.h", |
| 528 | "integral_haptic_wheel.h", |
| 529 | ], |
| 530 | restricted_to = mcu_cpus, |
| 531 | deps = [ |
| 532 | "//frc971/control_loops:state_feedback_loop_uc", |
| 533 | ], |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 534 | ) |
| 535 | |
| 536 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 537 | name = "haptic_wheel", |
| 538 | srcs = [ |
| 539 | "haptic_trigger.cc", |
| 540 | "haptic_wheel.cc", |
| 541 | "integral_haptic_trigger.cc", |
| 542 | "integral_haptic_wheel.cc", |
| 543 | ], |
| 544 | hdrs = [ |
| 545 | "haptic_trigger.h", |
| 546 | "haptic_wheel.h", |
| 547 | "integral_haptic_trigger.h", |
| 548 | "integral_haptic_wheel.h", |
| 549 | ], |
| 550 | deps = [ |
| 551 | "//frc971/control_loops:state_feedback_loop", |
| 552 | ], |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame] | 553 | ) |
Austin Schuh | c2b0877 | 2018-12-19 18:05:06 +1100 | [diff] [blame] | 554 | |
| 555 | cc_library( |
| 556 | name = "spline", |
| 557 | srcs = ["spline.cc"], |
| 558 | hdrs = ["spline.h"], |
| 559 | deps = [ |
Austin Schuh | f49b4e3 | 2019-01-13 17:26:58 -0800 | [diff] [blame] | 560 | "//frc971/control_loops:binomial", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 561 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | c2b0877 | 2018-12-19 18:05:06 +1100 | [diff] [blame] | 562 | ], |
| 563 | ) |
| 564 | |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 565 | cc_binary( |
| 566 | name = "spline.so", |
| 567 | srcs = ["libspline.cc"], |
James Kuszmaul | 2ed7b3c | 2019-02-09 18:26:19 -0800 | [diff] [blame] | 568 | linkshared = True, |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 569 | deps = [ |
| 570 | ":distance_spline", |
| 571 | ":spline", |
Alex Perry | 0603b54 | 2019-01-25 20:29:51 -0800 | [diff] [blame] | 572 | ":trajectory", |
| 573 | "//aos/logging:implementations", |
| 574 | "//aos/network:team_number", |
James Kuszmaul | 8aa37cb | 2020-03-01 10:27:58 -0800 | [diff] [blame] | 575 | "//y2020/control_loops/drivetrain:drivetrain_base", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 576 | "@org_tuxfamily_eigen//:eigen", |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 577 | ], |
Alex Perry | a60da44 | 2019-01-21 19:00:27 -0500 | [diff] [blame] | 578 | ) |
| 579 | |
Austin Schuh | c2b0877 | 2018-12-19 18:05:06 +1100 | [diff] [blame] | 580 | cc_test( |
| 581 | name = "spline_test", |
| 582 | srcs = [ |
| 583 | "spline_test.cc", |
| 584 | ], |
| 585 | restricted_to = ["//tools:k8"], |
| 586 | deps = [ |
| 587 | ":spline", |
| 588 | "//aos/testing:googletest", |
| 589 | "//third_party/matplotlib-cpp", |
| 590 | "@com_github_gflags_gflags//:gflags", |
| 591 | ], |
| 592 | ) |
Austin Schuh | 941b46d | 2018-12-19 18:06:05 +1100 | [diff] [blame] | 593 | |
| 594 | cc_library( |
| 595 | name = "distance_spline", |
| 596 | srcs = ["distance_spline.cc"], |
| 597 | hdrs = ["distance_spline.h"], |
| 598 | deps = [ |
| 599 | ":spline", |
Austin Schuh | a6e7b21 | 2019-01-20 13:53:01 -0800 | [diff] [blame] | 600 | "//aos/logging", |
Austin Schuh | 941b46d | 2018-12-19 18:06:05 +1100 | [diff] [blame] | 601 | "//frc971/control_loops:fixed_quadrature", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 602 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | 941b46d | 2018-12-19 18:06:05 +1100 | [diff] [blame] | 603 | ], |
| 604 | ) |
| 605 | |
| 606 | cc_test( |
| 607 | name = "distance_spline_test", |
| 608 | srcs = [ |
| 609 | "distance_spline_test.cc", |
| 610 | ], |
Austin Schuh | 9b0b643 | 2019-01-13 21:15:17 -0800 | [diff] [blame] | 611 | defines = |
| 612 | cpu_select({ |
| 613 | "amd64": [ |
| 614 | "SUPPORT_PLOT=1", |
| 615 | ], |
| 616 | "arm": [], |
| 617 | }), |
| 618 | linkstatic = True, |
Austin Schuh | 941b46d | 2018-12-19 18:06:05 +1100 | [diff] [blame] | 619 | deps = [ |
| 620 | ":distance_spline", |
| 621 | "//aos/testing:googletest", |
Austin Schuh | a6e7b21 | 2019-01-20 13:53:01 -0800 | [diff] [blame] | 622 | "//aos/testing:test_shm", |
Austin Schuh | 941b46d | 2018-12-19 18:06:05 +1100 | [diff] [blame] | 623 | "@com_github_gflags_gflags//:gflags", |
Austin Schuh | 9b0b643 | 2019-01-13 21:15:17 -0800 | [diff] [blame] | 624 | ] + cpu_select({ |
| 625 | "amd64": [ |
| 626 | "//third_party/matplotlib-cpp", |
| 627 | ], |
| 628 | "arm": [], |
| 629 | }), |
Austin Schuh | 941b46d | 2018-12-19 18:06:05 +1100 | [diff] [blame] | 630 | ) |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 631 | |
| 632 | cc_library( |
| 633 | name = "trajectory", |
| 634 | srcs = ["trajectory.cc"], |
| 635 | hdrs = ["trajectory.h"], |
| 636 | deps = [ |
| 637 | ":distance_spline", |
| 638 | ":drivetrain_config", |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 639 | "//frc971/control_loops:c2d", |
| 640 | "//frc971/control_loops:dlqr", |
| 641 | "//frc971/control_loops:hybrid_state_feedback_loop", |
| 642 | "//frc971/control_loops:runge_kutta", |
| 643 | "//frc971/control_loops:state_feedback_loop", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 644 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 645 | ], |
| 646 | ) |
| 647 | |
| 648 | cc_binary( |
| 649 | name = "trajectory_plot", |
| 650 | srcs = [ |
| 651 | "trajectory_plot.cc", |
| 652 | ], |
| 653 | restricted_to = ["//tools:k8"], |
| 654 | deps = [ |
| 655 | ":distance_spline", |
| 656 | ":trajectory", |
| 657 | "//aos/logging:implementations", |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 658 | "//aos/network:team_number", |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 659 | "//third_party/matplotlib-cpp", |
Austin Schuh | 1104318 | 2019-03-23 22:29:12 -0700 | [diff] [blame] | 660 | "//y2019/control_loops/drivetrain:drivetrain_base", |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 661 | "@com_github_gflags_gflags//:gflags", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 662 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 663 | ], |
| 664 | ) |
| 665 | |
| 666 | cc_test( |
| 667 | name = "trajectory_test", |
| 668 | srcs = [ |
| 669 | "trajectory_test.cc", |
| 670 | ], |
Austin Schuh | 719a33e | 2019-01-07 15:13:34 -0800 | [diff] [blame] | 671 | defines = |
| 672 | cpu_select({ |
| 673 | "amd64": [ |
| 674 | "SUPPORT_PLOT=1", |
| 675 | ], |
| 676 | "arm": [], |
| 677 | }), |
| 678 | linkstatic = True, |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 679 | deps = [ |
| 680 | ":trajectory", |
James Kuszmaul | ea314d9 | 2019-02-18 19:45:06 -0800 | [diff] [blame] | 681 | ":drivetrain_test_lib", |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 682 | "//aos/testing:googletest", |
| 683 | "//aos/testing:test_shm", |
| 684 | "//y2016:constants", |
| 685 | "//y2016/control_loops/drivetrain:polydrivetrain_plants", |
James Kuszmaul | ea314d9 | 2019-02-18 19:45:06 -0800 | [diff] [blame] | 686 | "//y2019/control_loops/drivetrain:drivetrain_base", |
Austin Schuh | 719a33e | 2019-01-07 15:13:34 -0800 | [diff] [blame] | 687 | ] + cpu_select({ |
| 688 | "amd64": [ |
| 689 | "//third_party/matplotlib-cpp", |
| 690 | ], |
| 691 | "arm": [], |
| 692 | }), |
Austin Schuh | ec7f06d | 2019-01-04 07:47:15 +1100 | [diff] [blame] | 693 | ) |
Austin Schuh | ca08081 | 2017-05-10 19:31:55 -0700 | [diff] [blame] | 694 | |
| 695 | cc_library( |
| 696 | name = "improved_down_estimator", |
| 697 | srcs = [ |
| 698 | "improved_down_estimator.cc", |
| 699 | ], |
| 700 | hdrs = [ |
| 701 | "improved_down_estimator.h", |
| 702 | ], |
| 703 | deps = [ |
James Kuszmaul | 7f55f07 | 2020-03-01 10:21:26 -0800 | [diff] [blame] | 704 | ":drivetrain_config", |
James Kuszmaul | 3e1bb27 | 2020-01-17 18:38:19 -0800 | [diff] [blame] | 705 | ":drivetrain_status_fbs", |
Brian Silverman | dac0a4b | 2020-06-23 17:03:09 -0700 | [diff] [blame] | 706 | "//aos/controls:quaternion_utils", |
James Kuszmaul | 3e1bb27 | 2020-01-17 18:38:19 -0800 | [diff] [blame] | 707 | "//aos/events:event_loop", |
| 708 | "//frc971/control_loops:control_loops_fbs", |
Austin Schuh | ca08081 | 2017-05-10 19:31:55 -0700 | [diff] [blame] | 709 | "//frc971/control_loops:runge_kutta", |
James Kuszmaul | 3e1bb27 | 2020-01-17 18:38:19 -0800 | [diff] [blame] | 710 | "@//aos/time", |
Austin Schuh | ca08081 | 2017-05-10 19:31:55 -0700 | [diff] [blame] | 711 | "@com_github_google_glog//:glog", |
| 712 | "@org_tuxfamily_eigen//:eigen", |
| 713 | ], |
| 714 | ) |
| 715 | |
| 716 | cc_test( |
| 717 | name = "improved_down_estimator_test", |
| 718 | srcs = [ |
| 719 | "improved_down_estimator_test.cc", |
| 720 | ], |
| 721 | deps = [ |
James Kuszmaul | 7f55f07 | 2020-03-01 10:21:26 -0800 | [diff] [blame] | 722 | ":drivetrain_test_lib", |
Brian Silverman | dac0a4b | 2020-06-23 17:03:09 -0700 | [diff] [blame] | 723 | "//aos/controls:quaternion_utils", |
Austin Schuh | ca08081 | 2017-05-10 19:31:55 -0700 | [diff] [blame] | 724 | "//aos/testing:googletest", |
| 725 | "//aos/testing:random_seed", |
| 726 | "//frc971/control_loops/drivetrain:improved_down_estimator", |
| 727 | "@org_tuxfamily_eigen//:eigen", |
| 728 | ], |
| 729 | ) |
James Kuszmaul | f4ede20 | 2020-02-14 08:47:40 -0800 | [diff] [blame] | 730 | |
| 731 | cc_library( |
| 732 | name = "camera", |
| 733 | srcs = ["camera.h"], |
| 734 | visibility = ["//visibility:public"], |
| 735 | deps = [ |
| 736 | "//aos/containers:sized_array", |
| 737 | "//frc971/control_loops:pose", |
| 738 | ], |
| 739 | ) |
| 740 | |
| 741 | cc_test( |
| 742 | name = "camera_test", |
| 743 | srcs = ["camera_test.cc"], |
| 744 | deps = [ |
| 745 | ":camera", |
| 746 | "//aos/testing:googletest", |
| 747 | ], |
| 748 | ) |