blob: 67ad5838b8135f91bf00556d1b26d06070545b84 [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 = [
Austin Schuh1e2d4982018-03-21 20:34:33 -070042 ":status_light",
Austin Schuh2a3e0632018-02-19 16:24:49 -080043 "//aos/common:time",
44 "//aos/common/actions:action_lib",
45 "//aos/common/logging",
46 "//aos/common/util:log_interval",
47 "//aos/input:drivetrain_input",
48 "//aos/input:joystick_input",
49 "//aos/linux_code:init",
50 "//frc971/autonomous:auto_queue",
Austin Schuha3c148e2018-03-09 21:04:05 -080051 "//frc971/autonomous:base_autonomous_actor",
Austin Schuh2a3e0632018-02-19 16:24:49 -080052 "//frc971/control_loops/drivetrain:drivetrain_queue",
53 "//y2018/control_loops/drivetrain:drivetrain_base",
54 "//y2018/control_loops/superstructure:superstructure_queue",
Austin Schuhab15c4d2018-03-09 21:21:03 -080055 "//y2018/control_loops/superstructure/arm:generated_graph",
Austin Schuh2a3e0632018-02-19 16:24:49 -080056 ],
57)
58
59cc_library(
60 name = "constants",
61 srcs = [
62 "constants.cc",
63 ],
64 hdrs = [
65 "constants.h",
66 ],
67 visibility = ["//visibility:public"],
68 deps = [
69 "//aos:once",
70 "//aos/common:mutex",
71 "//aos/common/logging",
72 "//aos/common/network:team_number",
73 "//frc971:constants",
74 "//frc971/shooter_interpolation:interpolation",
75 "//y2018/control_loops/drivetrain:polydrivetrain_plants",
76 "//y2018/control_loops/superstructure/arm:dynamics",
77 "//y2018/control_loops/superstructure/intake:intake_plants",
78 ],
79)
80
81cc_binary(
82 name = "wpilib_interface",
83 srcs = [
84 "wpilib_interface.cc",
85 ],
86 restricted_to = ["//tools:roborio"],
87 deps = [
Brian Silverman37281fc2018-03-11 18:42:17 -070088 ":status_light",
Austin Schuh2a3e0632018-02-19 16:24:49 -080089 "//aos/common:math",
90 "//aos/common:stl_mutex",
91 "//aos/common:time",
92 "//aos/common/controls:control_loop",
93 "//aos/common/logging",
94 "//aos/common/logging:queue_logging",
95 "//aos/common/messages:robot_state",
96 "//aos/common/util:log_interval",
97 "//aos/common/util:phased_loop",
98 "//aos/common/util:wrapping_counter",
99 "//aos/linux_code:init",
100 "//frc971/autonomous:auto_queue",
101 "//frc971/control_loops:queues",
102 "//frc971/control_loops/drivetrain:drivetrain_queue",
103 "//frc971/wpilib:ADIS16448",
104 "//frc971/wpilib:buffered_pcm",
105 "//frc971/wpilib:dma",
106 "//frc971/wpilib:dma_edge_counting",
107 "//frc971/wpilib:encoder_and_potentiometer",
Austin Schuh2a3e0632018-02-19 16:24:49 -0800108 "//frc971/wpilib:interrupt_edge_counting",
109 "//frc971/wpilib:joystick_sender",
110 "//frc971/wpilib:logging_queue",
111 "//frc971/wpilib:loop_output_handler",
112 "//frc971/wpilib:pdp_fetcher",
113 "//frc971/wpilib:wpilib_interface",
114 "//frc971/wpilib:wpilib_robot_base",
115 "//third_party:wpilib",
Brian Silverman37281fc2018-03-11 18:42:17 -0700116 "//third_party/Phoenix-frc-lib:phoenix",
Austin Schuh2a3e0632018-02-19 16:24:49 -0800117 "//y2018:constants",
118 "//y2018/control_loops/superstructure:superstructure_queue",
119 ],
Neil Balchacfca5b2018-01-28 14:04:08 -0800120)
Brian Silverman37281fc2018-03-11 18:42:17 -0700121
122queue_library(
123 name = "status_light",
124 srcs = [
125 "status_light.q",
126 ],
127)