Austin Schuh | 718c44c | 2018-02-17 15:38:01 -0800 | [diff] [blame] | 1 | cc_library( |
| 2 | name = "trajectory", |
| 3 | srcs = [ |
| 4 | "trajectory.cc", |
| 5 | ], |
| 6 | hdrs = [ |
| 7 | "trajectory.h", |
| 8 | ], |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 9 | visibility = ["//visibility:public"], |
Austin Schuh | 8e99b82 | 2018-02-18 00:15:36 -0800 | [diff] [blame] | 10 | deps = [ |
| 11 | ":dynamics", |
Austin Schuh | 0378513 | 2018-02-19 18:29:06 -0800 | [diff] [blame] | 12 | "//frc971/control_loops:dlqr", |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 13 | "//frc971/control_loops:jacobian", |
Austin Schuh | 8e99b82 | 2018-02-18 00:15:36 -0800 | [diff] [blame] | 14 | "//third_party/eigen", |
| 15 | ], |
Austin Schuh | 718c44c | 2018-02-17 15:38:01 -0800 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | cc_test( |
| 19 | name = "trajectory_test", |
| 20 | srcs = [ |
| 21 | "trajectory_test.cc", |
| 22 | ], |
| 23 | deps = [ |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 24 | ":demo_path", |
| 25 | ":dynamics", |
Austin Schuh | 54e5bb5 | 2018-02-19 01:09:18 -0800 | [diff] [blame] | 26 | ":ekf", |
Austin Schuh | 718c44c | 2018-02-17 15:38:01 -0800 | [diff] [blame] | 27 | ":trajectory", |
| 28 | "//aos/testing:googletest", |
| 29 | "//third_party/eigen", |
| 30 | ], |
| 31 | ) |
Austin Schuh | 7445586 | 2018-02-17 17:14:59 -0800 | [diff] [blame] | 32 | |
| 33 | cc_library( |
| 34 | name = "dynamics", |
| 35 | srcs = [ |
| 36 | "dynamics.cc", |
| 37 | ], |
| 38 | hdrs = [ |
| 39 | "dynamics.h", |
| 40 | ], |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 41 | visibility = ["//visibility:public"], |
Austin Schuh | 7445586 | 2018-02-17 17:14:59 -0800 | [diff] [blame] | 42 | deps = [ |
| 43 | "//frc971/control_loops:runge_kutta", |
| 44 | "//third_party/eigen", |
| 45 | ], |
| 46 | ) |
| 47 | |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 48 | cc_library( |
| 49 | name = "demo_path", |
| 50 | srcs = [ |
| 51 | "demo_path.cc", |
| 52 | ], |
| 53 | hdrs = ["demo_path.h"], |
| 54 | deps = [":trajectory"], |
| 55 | ) |
| 56 | |
Austin Schuh | 7445586 | 2018-02-17 17:14:59 -0800 | [diff] [blame] | 57 | cc_test( |
| 58 | name = "dynamics_test", |
| 59 | srcs = [ |
| 60 | "dynamics_test.cc", |
| 61 | ], |
| 62 | deps = [ |
| 63 | ":dynamics", |
| 64 | "//aos/testing:googletest", |
| 65 | ], |
| 66 | ) |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 67 | |
| 68 | cc_binary( |
| 69 | name = "trajectory_plot", |
| 70 | srcs = [ |
| 71 | "trajectory_plot.cc", |
| 72 | ], |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 73 | restricted_to = ["//tools:k8"], |
| 74 | deps = [ |
| 75 | ":demo_path", |
Austin Schuh | 54e5bb5 | 2018-02-19 01:09:18 -0800 | [diff] [blame] | 76 | ":ekf", |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 77 | ":trajectory", |
| 78 | "//third_party/eigen", |
| 79 | "//third_party/matplotlib-cpp", |
| 80 | ], |
| 81 | ) |
Austin Schuh | 54e5bb5 | 2018-02-19 01:09:18 -0800 | [diff] [blame] | 82 | |
| 83 | cc_library( |
| 84 | name = "ekf", |
| 85 | srcs = [ |
| 86 | "ekf.cc", |
| 87 | ], |
| 88 | hdrs = [ |
| 89 | "ekf.h", |
| 90 | ], |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 91 | visibility = ["//visibility:public"], |
Austin Schuh | 54e5bb5 | 2018-02-19 01:09:18 -0800 | [diff] [blame] | 92 | deps = [ |
| 93 | ":dynamics", |
| 94 | "//frc971/control_loops:jacobian", |
| 95 | "//third_party/eigen", |
| 96 | ], |
| 97 | ) |
Parker Schuh | be36c5b | 2018-02-19 01:06:50 -0800 | [diff] [blame^] | 98 | |
| 99 | cc_library( |
| 100 | name = "graph", |
| 101 | srcs = ["graph.cc"], |
| 102 | hdrs = ["graph.h"], |
| 103 | ) |
| 104 | |
| 105 | cc_test( |
| 106 | name = "graph_test", |
| 107 | srcs = ["graph_test.cc"], |
| 108 | deps = [ |
| 109 | ":graph", |
| 110 | "//aos/testing:googletest", |
| 111 | ], |
| 112 | ) |