| load("//aos:config.bzl", "aos_config") |
| load("//aos/flatbuffers:generate.bzl", "static_flatbuffer") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| cc_library( |
| name = "joystick_input", |
| srcs = [ |
| "joystick_input.cc", |
| ], |
| hdrs = [ |
| "joystick_input.h", |
| ], |
| target_compatible_with = ["@platforms//os:linux"], |
| deps = [ |
| ":robot_state_fbs", |
| "//aos/events:event_loop", |
| "//aos/logging", |
| "//frc971/input:driver_station_data", |
| ], |
| ) |
| |
| cc_library( |
| name = "drivetrain_input", |
| srcs = [ |
| "drivetrain_input.cc", |
| ], |
| hdrs = [ |
| "drivetrain_input.h", |
| ], |
| target_compatible_with = ["@platforms//os:linux"], |
| deps = [ |
| ":robot_state_fbs", |
| "//aos:math", |
| "//aos/logging", |
| "//frc971/control_loops:control_loops_fbs", |
| "//frc971/control_loops/drivetrain:drivetrain_config", |
| "//frc971/control_loops/drivetrain:drivetrain_goal_fbs", |
| "//frc971/control_loops/drivetrain:drivetrain_status_fbs", |
| "//frc971/control_loops/drivetrain:spline_goal_fbs", |
| "//frc971/input:driver_station_data", |
| ], |
| ) |
| |
| cc_library( |
| name = "driver_station_data", |
| srcs = [ |
| "driver_station_data.cc", |
| ], |
| hdrs = [ |
| "driver_station_data.h", |
| ], |
| target_compatible_with = ["@platforms//os:linux"], |
| deps = [ |
| ":joystick_state_fbs", |
| "@com_google_absl//absl/log", |
| "@com_google_absl//absl/log:check", |
| ], |
| ) |
| |
| cc_library( |
| name = "redundant_joystick_data", |
| srcs = [ |
| "redundant_joystick_data.cc", |
| ], |
| hdrs = [ |
| "redundant_joystick_data.h", |
| ], |
| target_compatible_with = ["@platforms//os:linux"], |
| deps = [ |
| ":driver_station_data", |
| "//aos/events:event_loop", |
| ], |
| ) |
| |
| cc_library( |
| name = "action_joystick_input", |
| srcs = ["action_joystick_input.cc"], |
| hdrs = ["action_joystick_input.h"], |
| target_compatible_with = ["@platforms//os:linux"], |
| deps = [ |
| ":drivetrain_input", |
| ":redundant_joystick_data", |
| "//aos:init", |
| "//aos/actions:action_lib", |
| "//aos/logging", |
| "//frc971/autonomous:auto_fbs", |
| "//frc971/autonomous:auto_mode_fbs", |
| "//frc971/autonomous:base_autonomous_actor", |
| "//frc971/input:joystick_input", |
| ], |
| ) |
| |
| static_flatbuffer( |
| name = "robot_state_fbs", |
| srcs = ["robot_state.fbs"], |
| target_compatible_with = ["@platforms//os:linux"], |
| ) |
| |
| static_flatbuffer( |
| name = "joystick_state_fbs", |
| srcs = ["joystick_state.fbs"], |
| target_compatible_with = ["@platforms//os:linux"], |
| ) |
| |
| aos_config( |
| name = "aos_config", |
| src = "robot_state_config.json", |
| flatbuffers = [ |
| ":joystick_state_fbs", |
| ":robot_state_fbs", |
| ], |
| target_compatible_with = ["@platforms//os:linux"], |
| visibility = ["//visibility:public"], |
| deps = ["//aos/events:aos_config"], |
| ) |