Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library") |
Austin Schuh | 7d63eab | 2021-03-06 20:15:02 -0800 | [diff] [blame] | 4 | load("@npm_bazel_typescript//:defs.bzl", "ts_library") |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 5 | |
| 6 | flatbuffer_cc_library( |
| 7 | name = "superstructure_goal_fbs", |
| 8 | srcs = [ |
| 9 | "superstructure_goal.fbs", |
| 10 | ], |
| 11 | gen_reflections = 1, |
| 12 | includes = [ |
| 13 | "//frc971/control_loops:control_loops_fbs_includes", |
| 14 | "//frc971/control_loops:profiled_subsystem_fbs_includes", |
| 15 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 16 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 17 | ) |
| 18 | |
| 19 | flatbuffer_cc_library( |
| 20 | name = "superstructure_output_fbs", |
| 21 | srcs = [ |
| 22 | "superstructure_output.fbs", |
| 23 | ], |
| 24 | gen_reflections = 1, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 25 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 26 | ) |
| 27 | |
| 28 | flatbuffer_cc_library( |
| 29 | name = "superstructure_status_fbs", |
| 30 | srcs = [ |
| 31 | "superstructure_status.fbs", |
| 32 | ], |
| 33 | gen_reflections = 1, |
| 34 | includes = [ |
| 35 | "//frc971/control_loops:control_loops_fbs_includes", |
| 36 | "//frc971/control_loops:profiled_subsystem_fbs_includes", |
| 37 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 38 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 39 | ) |
| 40 | |
| 41 | flatbuffer_cc_library( |
| 42 | name = "superstructure_position_fbs", |
| 43 | srcs = [ |
| 44 | "superstructure_position.fbs", |
| 45 | ], |
| 46 | gen_reflections = 1, |
| 47 | includes = [ |
| 48 | "//frc971/control_loops:control_loops_fbs_includes", |
| 49 | "//frc971/control_loops:profiled_subsystem_fbs_includes", |
| 50 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 51 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 52 | ) |
| 53 | |
| 54 | cc_library( |
| 55 | name = "superstructure_lib", |
| 56 | srcs = [ |
| 57 | "superstructure.cc", |
| 58 | ], |
| 59 | hdrs = [ |
| 60 | "superstructure.h", |
| 61 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 62 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 63 | deps = [ |
John Park | 0a245a0 | 2020-02-02 14:10:15 -0800 | [diff] [blame] | 64 | ":climber", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 65 | ":superstructure_goal_fbs", |
| 66 | ":superstructure_output_fbs", |
| 67 | ":superstructure_position_fbs", |
| 68 | ":superstructure_status_fbs", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 69 | "//aos/events:event_loop", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame^] | 70 | "//frc971/control_loops:control_loop", |
James Kuszmaul | b1b2d8e | 2020-02-21 21:11:46 -0800 | [diff] [blame] | 71 | "//frc971/control_loops:control_loops_fbs", |
| 72 | "//frc971/control_loops/drivetrain:drivetrain_status_fbs", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 73 | "//y2020:constants", |
Sabina Davis | 0f31d3f | 2020-02-20 20:41:00 -0800 | [diff] [blame] | 74 | "//y2020/control_loops/superstructure/shooter", |
James Kuszmaul | b1b2d8e | 2020-02-21 21:11:46 -0800 | [diff] [blame] | 75 | "//y2020/control_loops/superstructure/turret:aiming", |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 76 | ], |
| 77 | ) |
| 78 | |
| 79 | cc_binary( |
| 80 | name = "superstructure", |
| 81 | srcs = [ |
| 82 | "superstructure_main.cc", |
| 83 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 84 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 85 | deps = [ |
| 86 | ":superstructure_lib", |
| 87 | "//aos:init", |
| 88 | "//aos/events:shm_event_loop", |
| 89 | ], |
| 90 | ) |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 91 | |
| 92 | cc_test( |
| 93 | name = "superstructure_lib_test", |
| 94 | srcs = [ |
| 95 | "superstructure_lib_test.cc", |
| 96 | ], |
| 97 | data = [ |
Austin Schuh | 14d7d3d | 2020-09-10 18:14:36 -0700 | [diff] [blame] | 98 | "//y2020:config", |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 99 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 100 | target_compatible_with = ["@platforms//os:linux"], |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 101 | deps = [ |
| 102 | ":superstructure_goal_fbs", |
| 103 | ":superstructure_lib", |
| 104 | ":superstructure_output_fbs", |
| 105 | ":superstructure_position_fbs", |
| 106 | ":superstructure_status_fbs", |
| 107 | "//aos:math", |
Austin Schuh | b06f03b | 2021-02-17 22:00:37 -0800 | [diff] [blame] | 108 | "//aos/events/logging:log_writer", |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 109 | "//aos/testing:googletest", |
| 110 | "//aos/time", |
| 111 | "//frc971/control_loops:capped_test_plant", |
Austin Schuh | 0a3c9d4 | 2021-07-15 22:36:24 -0700 | [diff] [blame^] | 112 | "//frc971/control_loops:control_loop_test", |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 113 | "//frc971/control_loops:position_sensor_sim", |
| 114 | "//frc971/control_loops:team_number_test_environment", |
| 115 | "//frc971/control_loops/drivetrain:drivetrain_status_fbs", |
| 116 | "//y2020/control_loops/superstructure/hood:hood_plants", |
Sabina Davis | 0f2d38c | 2020-02-08 17:01:21 -0800 | [diff] [blame] | 117 | "//y2020/control_loops/superstructure/intake:intake_plants", |
Sabina Davis | 0f31d3f | 2020-02-20 20:41:00 -0800 | [diff] [blame] | 118 | "//y2020/control_loops/superstructure/shooter:shooter_plants", |
Sabina Davis | 7704a65 | 2020-02-01 11:42:14 -0800 | [diff] [blame] | 119 | ], |
| 120 | ) |
John Park | 0a245a0 | 2020-02-02 14:10:15 -0800 | [diff] [blame] | 121 | |
| 122 | cc_library( |
| 123 | name = "climber", |
| 124 | srcs = [ |
| 125 | "climber.cc", |
| 126 | ], |
| 127 | hdrs = [ |
| 128 | "climber.h", |
| 129 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 130 | target_compatible_with = ["@platforms//os:linux"], |
John Park | 0a245a0 | 2020-02-02 14:10:15 -0800 | [diff] [blame] | 131 | deps = [ |
| 132 | ":superstructure_goal_fbs", |
| 133 | ":superstructure_output_fbs", |
James Kuszmaul | 6175066 | 2021-06-21 21:32:33 -0700 | [diff] [blame] | 134 | "//frc971/control_loops:control_loop", |
John Park | 0a245a0 | 2020-02-02 14:10:15 -0800 | [diff] [blame] | 135 | "//frc971/control_loops:control_loops_fbs", |
| 136 | "//frc971/control_loops:profiled_subsystem_fbs", |
| 137 | ], |
| 138 | ) |
Austin Schuh | 7d63eab | 2021-03-06 20:15:02 -0800 | [diff] [blame] | 139 | |
| 140 | ts_library( |
| 141 | name = "finisher_plotter", |
| 142 | srcs = ["finisher_plotter.ts"], |
| 143 | target_compatible_with = ["@platforms//os:linux"], |
| 144 | deps = [ |
| 145 | "//aos/network/www:aos_plotter", |
Ravago Jones | 819ba1f | 2021-03-10 10:48:10 -0800 | [diff] [blame] | 146 | "//aos/network/www:colors", |
Austin Schuh | 7d63eab | 2021-03-06 20:15:02 -0800 | [diff] [blame] | 147 | "//aos/network/www:proxy", |
| 148 | ], |
| 149 | ) |
| 150 | |
| 151 | ts_library( |
| 152 | name = "accelerator_plotter", |
| 153 | srcs = ["accelerator_plotter.ts"], |
| 154 | target_compatible_with = ["@platforms//os:linux"], |
| 155 | deps = [ |
| 156 | "//aos/network/www:aos_plotter", |
Ravago Jones | 819ba1f | 2021-03-10 10:48:10 -0800 | [diff] [blame] | 157 | "//aos/network/www:colors", |
Austin Schuh | 7d63eab | 2021-03-06 20:15:02 -0800 | [diff] [blame] | 158 | "//aos/network/www:proxy", |
| 159 | ], |
| 160 | ) |
Austin Schuh | 2efe168 | 2021-03-06 22:47:15 -0800 | [diff] [blame] | 161 | |
| 162 | ts_library( |
| 163 | name = "hood_plotter", |
| 164 | srcs = ["hood_plotter.ts"], |
| 165 | target_compatible_with = ["@platforms//os:linux"], |
| 166 | deps = [ |
| 167 | "//aos/network/www:aos_plotter", |
Ravago Jones | 819ba1f | 2021-03-10 10:48:10 -0800 | [diff] [blame] | 168 | "//aos/network/www:colors", |
Austin Schuh | 2efe168 | 2021-03-06 22:47:15 -0800 | [diff] [blame] | 169 | "//aos/network/www:proxy", |
| 170 | ], |
| 171 | ) |