blob: 19284e893ac36b34cd961857c1f06f33a809679d [file] [log] [blame]
Austin Schuh2a3e0632018-02-19 16:24:49 -08001load("//aos/downloader:downloader.bzl", "aos_downloader")
Brian Silverman37281fc2018-03-11 18:42:17 -07002load("//aos/build:queues.bzl", "queue_library")
Neil Balchacfca5b2018-01-28 14:04:08 -08003
4aos_downloader(
Austin Schuh2a3e0632018-02-19 16:24:49 -08005 name = "download",
6 srcs = [
7 "//aos:prime_binaries",
8 ],
9 restricted_to = ["//tools:roborio"],
10 start_srcs = [
11 ":joystick_reader",
12 ":wpilib_interface",
13 "//aos:prime_start_binaries",
14 "//y2018/control_loops/drivetrain:drivetrain",
Austin Schuha3c148e2018-03-09 21:04:05 -080015 "//y2018/actors:autonomous_action",
16 "//y2018/control_loops/superstructure:superstructure",
Austin Schuh2a3e0632018-02-19 16:24:49 -080017 ],
Neil Balchacfca5b2018-01-28 14:04:08 -080018)
19
20aos_downloader(
Austin Schuh2a3e0632018-02-19 16:24:49 -080021 name = "download_stripped",
22 srcs = [
23 "//aos:prime_binaries_stripped",
24 ],
25 restricted_to = ["//tools:roborio"],
26 start_srcs = [
27 ":joystick_reader.stripped",
28 ":wpilib_interface.stripped",
29 "//aos:prime_start_binaries_stripped",
Austin Schuha3c148e2018-03-09 21:04:05 -080030 "//y2018/actors:autonomous_action.stripped",
Austin Schuh2a3e0632018-02-19 16:24:49 -080031 "//y2018/control_loops/drivetrain:drivetrain.stripped",
Austin Schuh6829f762018-03-02 21:36:01 -080032 "//y2018/control_loops/superstructure:superstructure.stripped",
Austin Schuh2a3e0632018-02-19 16:24:49 -080033 ],
Neil Balchacfca5b2018-01-28 14:04:08 -080034)
35
36cc_binary(
Austin Schuh2a3e0632018-02-19 16:24:49 -080037 name = "joystick_reader",
38 srcs = [
39 "joystick_reader.cc",
40 ],
41 deps = [
42 "//aos/common:time",
43 "//aos/common/actions:action_lib",
44 "//aos/common/logging",
45 "//aos/common/util:log_interval",
46 "//aos/input:drivetrain_input",
47 "//aos/input:joystick_input",
48 "//aos/linux_code:init",
49 "//frc971/autonomous:auto_queue",
Austin Schuha3c148e2018-03-09 21:04:05 -080050 "//frc971/autonomous:base_autonomous_actor",
Austin Schuh2a3e0632018-02-19 16:24:49 -080051 "//frc971/control_loops/drivetrain:drivetrain_queue",
52 "//y2018/control_loops/drivetrain:drivetrain_base",
53 "//y2018/control_loops/superstructure:superstructure_queue",
Austin Schuhab15c4d2018-03-09 21:21:03 -080054 "//y2018/control_loops/superstructure/arm:generated_graph",
Austin Schuh2a3e0632018-02-19 16:24:49 -080055 ],
56)
57
58cc_library(
59 name = "constants",
60 srcs = [
61 "constants.cc",
62 ],
63 hdrs = [
64 "constants.h",
65 ],
66 visibility = ["//visibility:public"],
67 deps = [
68 "//aos:once",
69 "//aos/common:mutex",
70 "//aos/common/logging",
71 "//aos/common/network:team_number",
72 "//frc971:constants",
73 "//frc971/shooter_interpolation:interpolation",
74 "//y2018/control_loops/drivetrain:polydrivetrain_plants",
75 "//y2018/control_loops/superstructure/arm:dynamics",
76 "//y2018/control_loops/superstructure/intake:intake_plants",
77 ],
78)
79
80cc_binary(
81 name = "wpilib_interface",
82 srcs = [
83 "wpilib_interface.cc",
84 ],
85 restricted_to = ["//tools:roborio"],
86 deps = [
Brian Silverman37281fc2018-03-11 18:42:17 -070087 ":status_light",
Austin Schuh2a3e0632018-02-19 16:24:49 -080088 "//aos/common:math",
89 "//aos/common:stl_mutex",
90 "//aos/common:time",
91 "//aos/common/controls:control_loop",
92 "//aos/common/logging",
93 "//aos/common/logging:queue_logging",
94 "//aos/common/messages:robot_state",
95 "//aos/common/util:log_interval",
96 "//aos/common/util:phased_loop",
97 "//aos/common/util:wrapping_counter",
98 "//aos/linux_code:init",
99 "//frc971/autonomous:auto_queue",
100 "//frc971/control_loops:queues",
101 "//frc971/control_loops/drivetrain:drivetrain_queue",
102 "//frc971/wpilib:ADIS16448",
103 "//frc971/wpilib:buffered_pcm",
104 "//frc971/wpilib:dma",
105 "//frc971/wpilib:dma_edge_counting",
106 "//frc971/wpilib:encoder_and_potentiometer",
Austin Schuh2a3e0632018-02-19 16:24:49 -0800107 "//frc971/wpilib:interrupt_edge_counting",
108 "//frc971/wpilib:joystick_sender",
109 "//frc971/wpilib:logging_queue",
110 "//frc971/wpilib:loop_output_handler",
111 "//frc971/wpilib:pdp_fetcher",
112 "//frc971/wpilib:wpilib_interface",
113 "//frc971/wpilib:wpilib_robot_base",
114 "//third_party:wpilib",
Brian Silverman37281fc2018-03-11 18:42:17 -0700115 "//third_party/Phoenix-frc-lib:phoenix",
Austin Schuh2a3e0632018-02-19 16:24:49 -0800116 "//y2018:constants",
117 "//y2018/control_loops/superstructure:superstructure_queue",
118 ],
Neil Balchacfca5b2018-01-28 14:04:08 -0800119)
Brian Silverman37281fc2018-03-11 18:42:17 -0700120
121queue_library(
122 name = "status_light",
123 srcs = [
124 "status_light.q",
125 ],
126)