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 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 9 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 10 | visibility = ["//visibility:public"], |
Austin Schuh | 8e99b82 | 2018-02-18 00:15:36 -0800 | [diff] [blame] | 11 | deps = [ |
| 12 | ":dynamics", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 13 | "//aos/logging", |
Austin Schuh | 0378513 | 2018-02-19 18:29:06 -0800 | [diff] [blame] | 14 | "//frc971/control_loops:dlqr", |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 15 | "//frc971/control_loops:jacobian", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 16 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | 8e99b82 | 2018-02-18 00:15:36 -0800 | [diff] [blame] | 17 | ], |
Austin Schuh | 718c44c | 2018-02-17 15:38:01 -0800 | [diff] [blame] | 18 | ) |
| 19 | |
| 20 | cc_test( |
| 21 | name = "trajectory_test", |
| 22 | srcs = [ |
| 23 | "trajectory_test.cc", |
| 24 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 25 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 718c44c | 2018-02-17 15:38:01 -0800 | [diff] [blame] | 26 | deps = [ |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 27 | ":demo_path", |
| 28 | ":dynamics", |
Austin Schuh | 54e5bb5 | 2018-02-19 01:09:18 -0800 | [diff] [blame] | 29 | ":ekf", |
Austin Schuh | 718c44c | 2018-02-17 15:38:01 -0800 | [diff] [blame] | 30 | ":trajectory", |
| 31 | "//aos/testing:googletest", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 32 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | 718c44c | 2018-02-17 15:38:01 -0800 | [diff] [blame] | 33 | ], |
| 34 | ) |
Austin Schuh | 7445586 | 2018-02-17 17:14:59 -0800 | [diff] [blame] | 35 | |
| 36 | cc_library( |
| 37 | name = "dynamics", |
| 38 | srcs = [ |
| 39 | "dynamics.cc", |
| 40 | ], |
| 41 | hdrs = [ |
| 42 | "dynamics.h", |
| 43 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 44 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 45 | visibility = ["//visibility:public"], |
Austin Schuh | 7445586 | 2018-02-17 17:14:59 -0800 | [diff] [blame] | 46 | deps = [ |
| 47 | "//frc971/control_loops:runge_kutta", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 48 | "@com_github_gflags_gflags//:gflags", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 49 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | 7445586 | 2018-02-17 17:14:59 -0800 | [diff] [blame] | 50 | ], |
| 51 | ) |
| 52 | |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 53 | cc_library( |
| 54 | name = "demo_path", |
| 55 | srcs = [ |
| 56 | "demo_path.cc", |
| 57 | ], |
| 58 | hdrs = ["demo_path.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 59 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 60 | deps = [":trajectory"], |
| 61 | ) |
| 62 | |
Austin Schuh | 7445586 | 2018-02-17 17:14:59 -0800 | [diff] [blame] | 63 | cc_test( |
| 64 | name = "dynamics_test", |
| 65 | srcs = [ |
| 66 | "dynamics_test.cc", |
| 67 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 68 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 7445586 | 2018-02-17 17:14:59 -0800 | [diff] [blame] | 69 | deps = [ |
| 70 | ":dynamics", |
| 71 | "//aos/testing:googletest", |
| 72 | ], |
| 73 | ) |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 74 | |
| 75 | cc_binary( |
| 76 | name = "trajectory_plot", |
| 77 | srcs = [ |
| 78 | "trajectory_plot.cc", |
| 79 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 80 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 81 | deps = [ |
Austin Schuh | 54e5bb5 | 2018-02-19 01:09:18 -0800 | [diff] [blame] | 82 | ":ekf", |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 83 | ":generated_graph", |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 84 | ":trajectory", |
Austin Schuh | fd84c33 | 2023-02-11 18:12:22 -0800 | [diff] [blame] | 85 | "//frc971/analysis:in_process_plotter", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 86 | "@com_github_gflags_gflags//:gflags", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 87 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | 0cf8348 | 2018-02-18 21:36:50 -0800 | [diff] [blame] | 88 | ], |
| 89 | ) |
Austin Schuh | 54e5bb5 | 2018-02-19 01:09:18 -0800 | [diff] [blame] | 90 | |
| 91 | cc_library( |
| 92 | name = "ekf", |
| 93 | srcs = [ |
| 94 | "ekf.cc", |
| 95 | ], |
| 96 | hdrs = [ |
| 97 | "ekf.h", |
| 98 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 99 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 100 | visibility = ["//visibility:public"], |
Austin Schuh | 54e5bb5 | 2018-02-19 01:09:18 -0800 | [diff] [blame] | 101 | deps = [ |
| 102 | ":dynamics", |
| 103 | "//frc971/control_loops:jacobian", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 104 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | 54e5bb5 | 2018-02-19 01:09:18 -0800 | [diff] [blame] | 105 | ], |
| 106 | ) |
Parker Schuh | be36c5b | 2018-02-19 01:06:50 -0800 | [diff] [blame] | 107 | |
| 108 | cc_library( |
| 109 | name = "graph", |
| 110 | srcs = ["graph.cc"], |
| 111 | hdrs = ["graph.h"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 112 | target_compatible_with = ["@platforms//os:linux"], |
Parker Schuh | be36c5b | 2018-02-19 01:06:50 -0800 | [diff] [blame] | 113 | ) |
| 114 | |
| 115 | cc_test( |
| 116 | name = "graph_test", |
| 117 | srcs = ["graph_test.cc"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 118 | target_compatible_with = ["@platforms//os:linux"], |
Parker Schuh | be36c5b | 2018-02-19 01:06:50 -0800 | [diff] [blame] | 119 | deps = [ |
| 120 | ":graph", |
| 121 | "//aos/testing:googletest", |
| 122 | ], |
| 123 | ) |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 124 | |
| 125 | cc_library( |
| 126 | name = "arm", |
| 127 | srcs = [ |
| 128 | "arm.cc", |
| 129 | ], |
| 130 | hdrs = [ |
| 131 | "arm.h", |
| 132 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 133 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 134 | visibility = ["//visibility:public"], |
| 135 | deps = [ |
| 136 | ":demo_path", |
| 137 | ":ekf", |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 138 | ":generated_graph", |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 139 | ":graph", |
| 140 | ":trajectory", |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 141 | "//frc971/zeroing", |
| 142 | "//y2018:constants", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 143 | "//y2018/control_loops/superstructure:superstructure_position_fbs", |
| 144 | "//y2018/control_loops/superstructure:superstructure_status_fbs", |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 145 | ], |
| 146 | ) |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 147 | |
| 148 | genrule( |
| 149 | name = "generated_graph_genrule", |
| 150 | outs = [ |
| 151 | "generated_graph.h", |
| 152 | "generated_graph.cc", |
| 153 | ], |
| 154 | cmd = "$(location //y2018/control_loops/python:graph_codegen) $(OUTS)", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 155 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 156 | tools = [ |
| 157 | "//y2018/control_loops/python:graph_codegen", |
| 158 | ], |
| 159 | ) |
| 160 | |
| 161 | cc_library( |
| 162 | name = "generated_graph", |
| 163 | srcs = [ |
| 164 | "generated_graph.cc", |
| 165 | ], |
| 166 | hdrs = ["generated_graph.h"], |
Austin Schuh | cf96d32 | 2018-04-07 15:52:31 -0700 | [diff] [blame] | 167 | copts = [ |
| 168 | "-O1", |
| 169 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 170 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | ab15c4d | 2018-03-09 21:21:03 -0800 | [diff] [blame] | 171 | visibility = ["//visibility:public"], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 172 | deps = [ |
| 173 | ":graph", |
| 174 | ":trajectory", |
| 175 | ], |
| 176 | ) |