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