blob: ec18f9d515008f833dacb46e3cb885d3b8d61706 [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",
James Kuszmaulec635d22023-08-12 18:39:24 -070018 "//frc971/zeroing:pot_and_absolute_encoder",
Austin Schuhcb091712018-02-21 20:01:55 -080019 "//y2018:constants",
Alex Perrycb7da4b2019-08-28 19:35:56 -070020 "//y2018/control_loops/superstructure:superstructure_position_fbs",
21 "//y2018/control_loops/superstructure:superstructure_status_fbs",
Maxwell Henderson8f0e07f2023-02-08 21:10:58 -080022 "//y2018/control_loops/superstructure/arm:arm_constants",
Austin Schuhcb091712018-02-21 20:01:55 -080023 ],
24)
Austin Schuh7dfccf62018-03-03 21:28:14 -080025
26genrule(
27 name = "generated_graph_genrule",
28 outs = [
29 "generated_graph.h",
30 "generated_graph.cc",
31 ],
32 cmd = "$(location //y2018/control_loops/python:graph_codegen) $(OUTS)",
Philipp Schraderdada1072020-11-24 11:34:46 -080033 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh7dfccf62018-03-03 21:28:14 -080034 tools = [
35 "//y2018/control_loops/python:graph_codegen",
36 ],
37)
38
39cc_library(
40 name = "generated_graph",
41 srcs = [
42 "generated_graph.cc",
43 ],
44 hdrs = ["generated_graph.h"],
Austin Schuhcf96d322018-04-07 15:52:31 -070045 copts = [
46 "-O1",
47 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080048 target_compatible_with = ["@platforms//os:linux"],
Austin Schuhab15c4d2018-03-09 21:21:03 -080049 visibility = ["//visibility:public"],
Austin Schuh7dfccf62018-03-03 21:28:14 -080050 deps = [
Maxwell Henderson8f0e07f2023-02-08 21:10:58 -080051 ":arm_constants",
52 "//frc971/control_loops/double_jointed_arm:graph",
53 "//frc971/control_loops/double_jointed_arm:trajectory",
54 ],
55)
56
57cc_library(
58 name = "arm_constants",
59 hdrs = ["arm_constants.h"],
60 target_compatible_with = ["@platforms//os:linux"],
61 visibility = ["//visibility:public"],
62 deps = [
63 "//frc971/control_loops/double_jointed_arm:dynamics",
64 ],
65)
66
67cc_binary(
68 name = "trajectory_plot",
69 srcs = [
70 "trajectory_plot.cc",
71 ],
72 target_compatible_with = ["@platforms//cpu:x86_64"],
73 deps = [
74 ":arm_constants",
75 ":generated_graph",
76 "//frc971/analysis:in_process_plotter",
77 "//frc971/control_loops/double_jointed_arm:ekf",
78 "//frc971/control_loops/double_jointed_arm:trajectory",
79 "@com_github_gflags_gflags//:gflags",
80 "@org_tuxfamily_eigen//:eigen",
Austin Schuh7dfccf62018-03-03 21:28:14 -080081 ],
82)