blob: 9f969ff7a28a85d1352752d45d08c9b16fa8e94d [file] [log] [blame]
Austin Schuh718c44c2018-02-17 15:38:01 -08001cc_library(
Austin Schuhcb091712018-02-21 20:01:55 -08002 name = "arm",
3 srcs = [
4 "arm.cc",
5 ],
6 hdrs = [
7 "arm.h",
8 ],
Philipp Schraderdada1072020-11-24 11:34:46 -08009 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhcb091712018-02-21 20:01:55 -080010 visibility = ["//visibility:public"],
11 deps = [
Austin Schuh7dfccf62018-03-03 21:28:14 -080012 ":generated_graph",
Maxwell Henderson8f0e07f2023-02-08 21:10:58 -080013 "//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 Schuhcb091712018-02-21 20:01:55 -080017 "//frc971/zeroing",
18 "//y2018:constants",
Alex Perrycb7da4b2019-08-28 19:35:56 -070019 "//y2018/control_loops/superstructure:superstructure_position_fbs",
20 "//y2018/control_loops/superstructure:superstructure_status_fbs",
Maxwell Henderson8f0e07f2023-02-08 21:10:58 -080021 "//y2018/control_loops/superstructure/arm:arm_constants",
Austin Schuhcb091712018-02-21 20:01:55 -080022 ],
23)
Austin Schuh7dfccf62018-03-03 21:28:14 -080024
25genrule(
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 Schraderdada1072020-11-24 11:34:46 -080032 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh7dfccf62018-03-03 21:28:14 -080033 tools = [
34 "//y2018/control_loops/python:graph_codegen",
35 ],
36)
37
38cc_library(
39 name = "generated_graph",
40 srcs = [
41 "generated_graph.cc",
42 ],
43 hdrs = ["generated_graph.h"],
Austin Schuhcf96d322018-04-07 15:52:31 -070044 copts = [
45 "-O1",
46 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080047 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhab15c4d2018-03-09 21:21:03 -080048 visibility = ["//visibility:public"],
Austin Schuh7dfccf62018-03-03 21:28:14 -080049 deps = [
Maxwell Henderson8f0e07f2023-02-08 21:10:58 -080050 ":arm_constants",
51 "//frc971/control_loops/double_jointed_arm:graph",
52 "//frc971/control_loops/double_jointed_arm:trajectory",
53 ],
54)
55
56cc_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
66cc_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 Schuh7dfccf62018-03-03 21:28:14 -080080 ],
81)