blob: 89e2581b1ae656f005435576f8f4b31d4924ba8b [file] [log] [blame]
Austin Schuh2a3e0632018-02-19 16:24:49 -08001load("//aos/downloader:downloader.bzl", "aos_downloader")
Neil Balchacfca5b2018-01-28 14:04:08 -08002
3aos_downloader(
Austin Schuh2a3e0632018-02-19 16:24:49 -08004 name = "download",
5 srcs = [
6 "//aos:prime_binaries",
7 ],
8 restricted_to = ["//tools:roborio"],
9 start_srcs = [
10 ":joystick_reader",
11 ":wpilib_interface",
12 "//aos:prime_start_binaries",
13 "//y2018/control_loops/drivetrain:drivetrain",
Austin Schuh6829f762018-03-02 21:36:01 -080014 "//y2018/control_loops/superstructure:superstructure.stripped",
Austin Schuh2a3e0632018-02-19 16:24:49 -080015 ],
Neil Balchacfca5b2018-01-28 14:04:08 -080016)
17
18aos_downloader(
Austin Schuh2a3e0632018-02-19 16:24:49 -080019 name = "download_stripped",
20 srcs = [
21 "//aos:prime_binaries_stripped",
22 ],
23 restricted_to = ["//tools:roborio"],
24 start_srcs = [
25 ":joystick_reader.stripped",
26 ":wpilib_interface.stripped",
27 "//aos:prime_start_binaries_stripped",
28 "//y2018/control_loops/drivetrain:drivetrain.stripped",
Austin Schuh6829f762018-03-02 21:36:01 -080029 "//y2018/control_loops/superstructure:superstructure.stripped",
Austin Schuh2a3e0632018-02-19 16:24:49 -080030 ],
Neil Balchacfca5b2018-01-28 14:04:08 -080031)
32
33cc_binary(
Austin Schuh2a3e0632018-02-19 16:24:49 -080034 name = "joystick_reader",
35 srcs = [
36 "joystick_reader.cc",
37 ],
38 deps = [
39 "//aos/common:time",
40 "//aos/common/actions:action_lib",
41 "//aos/common/logging",
42 "//aos/common/util:log_interval",
43 "//aos/input:drivetrain_input",
44 "//aos/input:joystick_input",
45 "//aos/linux_code:init",
46 "//frc971/autonomous:auto_queue",
47 "//frc971/control_loops/drivetrain:drivetrain_queue",
48 "//y2018/control_loops/drivetrain:drivetrain_base",
49 "//y2018/control_loops/superstructure:superstructure_queue",
Austin Schuhab15c4d2018-03-09 21:21:03 -080050 "//y2018/control_loops/superstructure/arm:generated_graph",
Austin Schuh2a3e0632018-02-19 16:24:49 -080051 ],
52)
53
54cc_library(
55 name = "constants",
56 srcs = [
57 "constants.cc",
58 ],
59 hdrs = [
60 "constants.h",
61 ],
62 visibility = ["//visibility:public"],
63 deps = [
64 "//aos:once",
65 "//aos/common:mutex",
66 "//aos/common/logging",
67 "//aos/common/network:team_number",
68 "//frc971:constants",
69 "//frc971/shooter_interpolation:interpolation",
70 "//y2018/control_loops/drivetrain:polydrivetrain_plants",
71 "//y2018/control_loops/superstructure/arm:dynamics",
72 "//y2018/control_loops/superstructure/intake:intake_plants",
73 ],
74)
75
76cc_binary(
77 name = "wpilib_interface",
78 srcs = [
79 "wpilib_interface.cc",
80 ],
81 restricted_to = ["//tools:roborio"],
82 deps = [
83 "//aos/common:math",
84 "//aos/common:stl_mutex",
85 "//aos/common:time",
86 "//aos/common/controls:control_loop",
87 "//aos/common/logging",
88 "//aos/common/logging:queue_logging",
89 "//aos/common/messages:robot_state",
90 "//aos/common/util:log_interval",
91 "//aos/common/util:phased_loop",
92 "//aos/common/util:wrapping_counter",
93 "//aos/linux_code:init",
94 "//frc971/autonomous:auto_queue",
95 "//frc971/control_loops:queues",
96 "//frc971/control_loops/drivetrain:drivetrain_queue",
97 "//frc971/wpilib:ADIS16448",
98 "//frc971/wpilib:buffered_pcm",
99 "//frc971/wpilib:dma",
100 "//frc971/wpilib:dma_edge_counting",
101 "//frc971/wpilib:encoder_and_potentiometer",
Austin Schuh2a3e0632018-02-19 16:24:49 -0800102 "//frc971/wpilib:interrupt_edge_counting",
103 "//frc971/wpilib:joystick_sender",
104 "//frc971/wpilib:logging_queue",
105 "//frc971/wpilib:loop_output_handler",
106 "//frc971/wpilib:pdp_fetcher",
107 "//frc971/wpilib:wpilib_interface",
108 "//frc971/wpilib:wpilib_robot_base",
109 "//third_party:wpilib",
110 "//y2018:constants",
111 "//y2018/control_loops/superstructure:superstructure_queue",
112 ],
Neil Balchacfca5b2018-01-28 14:04:08 -0800113)