milind-u | 4b31c4d | 2021-09-18 16:08:23 -0700 | [diff] [blame] | 1 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library") |
| 2 | |
Philipp Schrader | cc016b3 | 2021-12-30 08:59:58 -0800 | [diff] [blame] | 3 | package(default_visibility = ["//visibility:public"]) |
| 4 | |
Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame] | 5 | cc_library( |
| 6 | name = "shooter_plants", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 7 | target_compatible_with = ["@platforms//os:linux"], |
Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame] | 8 | deps = [ |
| 9 | "//frc971/control_loops:state_feedback_loop", |
| 10 | ], |
| 11 | ) |
| 12 | |
| 13 | cc_library( |
| 14 | name = "shooter", |
| 15 | srcs = [ |
| 16 | "shooter.cc", |
| 17 | ], |
| 18 | hdrs = [ |
| 19 | "shooter.h", |
| 20 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 21 | target_compatible_with = ["@platforms//os:linux"], |
Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame] | 22 | deps = [ |
| 23 | ":flywheel_controller", |
James Kuszmaul | 6175066 | 2021-06-21 21:32:33 -0700 | [diff] [blame] | 24 | "//frc971/control_loops:control_loop", |
Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame] | 25 | "//frc971/control_loops:profiled_subsystem", |
| 26 | "//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", |
| 30 | ], |
| 31 | ) |
| 32 | |
| 33 | cc_library( |
| 34 | name = "flywheel_controller", |
| 35 | srcs = [ |
| 36 | "flywheel_controller.cc", |
| 37 | ], |
| 38 | hdrs = [ |
| 39 | "flywheel_controller.h", |
| 40 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 41 | target_compatible_with = ["@platforms//os:linux"], |
Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame] | 42 | deps = [ |
James Kuszmaul | 6175066 | 2021-06-21 21:32:33 -0700 | [diff] [blame] | 43 | "//frc971/control_loops:control_loop", |
Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame] | 44 | "//frc971/control_loops:profiled_subsystem", |
| 45 | "//y2020/control_loops/superstructure:superstructure_goal_fbs", |
| 46 | "//y2020/control_loops/superstructure:superstructure_status_fbs", |
Austin Schuh | 9dcd520 | 2020-02-20 20:06:04 -0800 | [diff] [blame] | 47 | "//y2020/control_loops/superstructure/accelerator:accelerator_plants", |
| 48 | "//y2020/control_loops/superstructure/finisher:finisher_plants", |
Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame] | 49 | ], |
| 50 | ) |
milind-u | 4b31c4d | 2021-09-18 16:08:23 -0700 | [diff] [blame] | 51 | |
| 52 | flatbuffer_cc_library( |
| 53 | name = "shooter_tuning_readings_fbs", |
| 54 | srcs = [ |
| 55 | "shooter_tuning_readings.fbs", |
| 56 | ], |
| 57 | gen_reflections = 1, |
| 58 | target_compatible_with = ["@platforms//os:linux"], |
| 59 | ) |
milind-u | 661a118 | 2021-09-21 20:30:43 -0700 | [diff] [blame] | 60 | |
| 61 | flatbuffer_cc_library( |
| 62 | name = "shooter_tuning_params_fbs", |
| 63 | srcs = [ |
| 64 | "shooter_tuning_params.fbs", |
| 65 | ], |
| 66 | gen_reflections = 1, |
| 67 | target_compatible_with = ["@platforms//os:linux"], |
| 68 | ) |
| 69 | |
| 70 | cc_binary( |
| 71 | name = "shooter_tuning_params_setter", |
| 72 | srcs = ["shooter_tuning_params_setter.cc"], |
| 73 | target_compatible_with = ["@platforms//os:linux"], |
| 74 | deps = [ |
| 75 | ":shooter_tuning_params_fbs", |
| 76 | ":shooter_tuning_readings_fbs", |
| 77 | "//aos:init", |
| 78 | "//aos/events:shm_event_loop", |
| 79 | "@com_github_gflags_gflags//:gflags", |
| 80 | "@com_github_google_glog//:glog", |
| 81 | ], |
| 82 | ) |