Austin Schuh | 718c44c | 2018-02-17 15:38:01 -0800 | [diff] [blame] | 1 | cc_library( |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 2 | name = "arm", |
| 3 | srcs = [ |
| 4 | "arm.cc", |
| 5 | ], |
| 6 | hdrs = [ |
| 7 | "arm.h", |
| 8 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 9 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 10 | visibility = ["//visibility:public"], |
| 11 | deps = [ |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 12 | ":generated_graph", |
Maxwell Henderson | 8f0e07f | 2023-02-08 21:10:58 -0800 | [diff] [blame^] | 13 | "//frc971/control_loops/double_jointed_arm:demo_path", |
| 14 | "//frc971/control_loops/double_jointed_arm:ekf", |
| 15 | "//frc971/control_loops/double_jointed_arm:graph", |
| 16 | "//frc971/control_loops/double_jointed_arm:trajectory", |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 17 | "//frc971/zeroing", |
| 18 | "//y2018:constants", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 19 | "//y2018/control_loops/superstructure:superstructure_position_fbs", |
| 20 | "//y2018/control_loops/superstructure:superstructure_status_fbs", |
Maxwell Henderson | 8f0e07f | 2023-02-08 21:10:58 -0800 | [diff] [blame^] | 21 | "//y2018/control_loops/superstructure/arm:arm_constants", |
Austin Schuh | cb09171 | 2018-02-21 20:01:55 -0800 | [diff] [blame] | 22 | ], |
| 23 | ) |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 24 | |
| 25 | genrule( |
| 26 | name = "generated_graph_genrule", |
| 27 | outs = [ |
| 28 | "generated_graph.h", |
| 29 | "generated_graph.cc", |
| 30 | ], |
| 31 | cmd = "$(location //y2018/control_loops/python:graph_codegen) $(OUTS)", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 32 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 33 | tools = [ |
| 34 | "//y2018/control_loops/python:graph_codegen", |
| 35 | ], |
| 36 | ) |
| 37 | |
| 38 | cc_library( |
| 39 | name = "generated_graph", |
| 40 | srcs = [ |
| 41 | "generated_graph.cc", |
| 42 | ], |
| 43 | hdrs = ["generated_graph.h"], |
Austin Schuh | cf96d32 | 2018-04-07 15:52:31 -0700 | [diff] [blame] | 44 | copts = [ |
| 45 | "-O1", |
| 46 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 47 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | ab15c4d | 2018-03-09 21:21:03 -0800 | [diff] [blame] | 48 | visibility = ["//visibility:public"], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 49 | deps = [ |
Maxwell Henderson | 8f0e07f | 2023-02-08 21:10:58 -0800 | [diff] [blame^] | 50 | ":arm_constants", |
| 51 | "//frc971/control_loops/double_jointed_arm:graph", |
| 52 | "//frc971/control_loops/double_jointed_arm:trajectory", |
| 53 | ], |
| 54 | ) |
| 55 | |
| 56 | cc_library( |
| 57 | name = "arm_constants", |
| 58 | hdrs = ["arm_constants.h"], |
| 59 | target_compatible_with = ["@platforms//os:linux"], |
| 60 | visibility = ["//visibility:public"], |
| 61 | deps = [ |
| 62 | "//frc971/control_loops/double_jointed_arm:dynamics", |
| 63 | ], |
| 64 | ) |
| 65 | |
| 66 | cc_binary( |
| 67 | name = "trajectory_plot", |
| 68 | srcs = [ |
| 69 | "trajectory_plot.cc", |
| 70 | ], |
| 71 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 72 | deps = [ |
| 73 | ":arm_constants", |
| 74 | ":generated_graph", |
| 75 | "//frc971/analysis:in_process_plotter", |
| 76 | "//frc971/control_loops/double_jointed_arm:ekf", |
| 77 | "//frc971/control_loops/double_jointed_arm:trajectory", |
| 78 | "@com_github_gflags_gflags//:gflags", |
| 79 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 80 | ], |
| 81 | ) |