blob: 96c933fbc9f8740f7d82590288902ffc86f215b1 [file] [log] [blame]
James Kuszmaulf01da392023-12-14 11:22:14 -08001load("//aos/flatbuffers:generate.bzl", "static_flatbuffer")
milind-u4b31c4d2021-09-18 16:08:23 -07002
Philipp Schradercc016b32021-12-30 08:59:58 -08003package(default_visibility = ["//visibility:public"])
4
Sabina Davisedf89472020-02-17 15:27:37 -08005cc_library(
6 name = "shooter_plants",
Philipp Schraderdada1072020-11-24 11:34:46 -08007 target_compatible_with = ["@platforms//os:linux"],
Sabina Davisedf89472020-02-17 15:27:37 -08008 deps = [
9 "//frc971/control_loops:state_feedback_loop",
10 ],
11)
12
13cc_library(
14 name = "shooter",
15 srcs = [
16 "shooter.cc",
17 ],
18 hdrs = [
19 "shooter.h",
20 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080021 target_compatible_with = ["@platforms//os:linux"],
Sabina Davisedf89472020-02-17 15:27:37 -080022 deps = [
James Kuszmaul61750662021-06-21 21:32:33 -070023 "//frc971/control_loops:control_loop",
Sabina Davisedf89472020-02-17 15:27:37 -080024 "//frc971/control_loops:profiled_subsystem",
Maxwell Henderson34242992024-01-07 12:39:11 -080025 "//frc971/control_loops/flywheel:flywheel_controller",
Sabina Davisedf89472020-02-17 15:27:37 -080026 "//y2020/control_loops/superstructure:superstructure_goal_fbs",
27 "//y2020/control_loops/superstructure:superstructure_output_fbs",
28 "//y2020/control_loops/superstructure:superstructure_position_fbs",
29 "//y2020/control_loops/superstructure:superstructure_status_fbs",
Austin Schuh9dcd5202020-02-20 20:06:04 -080030 "//y2020/control_loops/superstructure/accelerator:accelerator_plants",
31 "//y2020/control_loops/superstructure/finisher:finisher_plants",
Sabina Davisedf89472020-02-17 15:27:37 -080032 ],
33)
milind-u4b31c4d2021-09-18 16:08:23 -070034
James Kuszmaulf01da392023-12-14 11:22:14 -080035static_flatbuffer(
milind-u4b31c4d2021-09-18 16:08:23 -070036 name = "shooter_tuning_readings_fbs",
37 srcs = [
38 "shooter_tuning_readings.fbs",
39 ],
milind-u4b31c4d2021-09-18 16:08:23 -070040 target_compatible_with = ["@platforms//os:linux"],
41)
milind-u661a1182021-09-21 20:30:43 -070042
James Kuszmaulf01da392023-12-14 11:22:14 -080043static_flatbuffer(
milind-u661a1182021-09-21 20:30:43 -070044 name = "shooter_tuning_params_fbs",
45 srcs = [
46 "shooter_tuning_params.fbs",
47 ],
milind-u661a1182021-09-21 20:30:43 -070048 target_compatible_with = ["@platforms//os:linux"],
49)
50
51cc_binary(
52 name = "shooter_tuning_params_setter",
53 srcs = ["shooter_tuning_params_setter.cc"],
54 target_compatible_with = ["@platforms//os:linux"],
55 deps = [
56 ":shooter_tuning_params_fbs",
57 ":shooter_tuning_readings_fbs",
58 "//aos:init",
59 "//aos/events:shm_event_loop",
60 "@com_github_gflags_gflags//:gflags",
61 "@com_github_google_glog//:glog",
62 ],
63)