blob: 66062339b68ae102a5ffe5c01b0183c61e3fc7e5 [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 Schuha3c148e2018-03-09 21:04:05 -080014 "//y2018/actors:autonomous_action",
15 "//y2018/control_loops/superstructure:superstructure",
Austin Schuh2a3e0632018-02-19 16:24:49 -080016 ],
Neil Balchacfca5b2018-01-28 14:04:08 -080017)
18
19aos_downloader(
Austin Schuh2a3e0632018-02-19 16:24:49 -080020 name = "download_stripped",
21 srcs = [
22 "//aos:prime_binaries_stripped",
23 ],
24 restricted_to = ["//tools:roborio"],
25 start_srcs = [
26 ":joystick_reader.stripped",
27 ":wpilib_interface.stripped",
28 "//aos:prime_start_binaries_stripped",
Austin Schuha3c148e2018-03-09 21:04:05 -080029 "//y2018/actors:autonomous_action.stripped",
Austin Schuh2a3e0632018-02-19 16:24:49 -080030 "//y2018/control_loops/drivetrain:drivetrain.stripped",
Austin Schuh6829f762018-03-02 21:36:01 -080031 "//y2018/control_loops/superstructure:superstructure.stripped",
Austin Schuh2a3e0632018-02-19 16:24:49 -080032 ],
Neil Balchacfca5b2018-01-28 14:04:08 -080033)
34
35cc_binary(
Austin Schuh2a3e0632018-02-19 16:24:49 -080036 name = "joystick_reader",
37 srcs = [
38 "joystick_reader.cc",
39 ],
40 deps = [
41 "//aos/common:time",
42 "//aos/common/actions:action_lib",
43 "//aos/common/logging",
44 "//aos/common/util:log_interval",
45 "//aos/input:drivetrain_input",
46 "//aos/input:joystick_input",
47 "//aos/linux_code:init",
48 "//frc971/autonomous:auto_queue",
Austin Schuha3c148e2018-03-09 21:04:05 -080049 "//frc971/autonomous:base_autonomous_actor",
Austin Schuh2a3e0632018-02-19 16:24:49 -080050 "//frc971/control_loops/drivetrain:drivetrain_queue",
51 "//y2018/control_loops/drivetrain:drivetrain_base",
52 "//y2018/control_loops/superstructure:superstructure_queue",
Austin Schuhab15c4d2018-03-09 21:21:03 -080053 "//y2018/control_loops/superstructure/arm:generated_graph",
Austin Schuh2a3e0632018-02-19 16:24:49 -080054 ],
55)
56
57cc_library(
58 name = "constants",
59 srcs = [
60 "constants.cc",
61 ],
62 hdrs = [
63 "constants.h",
64 ],
65 visibility = ["//visibility:public"],
66 deps = [
67 "//aos:once",
68 "//aos/common:mutex",
69 "//aos/common/logging",
70 "//aos/common/network:team_number",
71 "//frc971:constants",
72 "//frc971/shooter_interpolation:interpolation",
73 "//y2018/control_loops/drivetrain:polydrivetrain_plants",
74 "//y2018/control_loops/superstructure/arm:dynamics",
75 "//y2018/control_loops/superstructure/intake:intake_plants",
76 ],
77)
78
79cc_binary(
80 name = "wpilib_interface",
81 srcs = [
82 "wpilib_interface.cc",
83 ],
84 restricted_to = ["//tools:roborio"],
85 deps = [
86 "//aos/common:math",
87 "//aos/common:stl_mutex",
88 "//aos/common:time",
89 "//aos/common/controls:control_loop",
90 "//aos/common/logging",
91 "//aos/common/logging:queue_logging",
92 "//aos/common/messages:robot_state",
93 "//aos/common/util:log_interval",
94 "//aos/common/util:phased_loop",
95 "//aos/common/util:wrapping_counter",
96 "//aos/linux_code:init",
97 "//frc971/autonomous:auto_queue",
98 "//frc971/control_loops:queues",
99 "//frc971/control_loops/drivetrain:drivetrain_queue",
100 "//frc971/wpilib:ADIS16448",
101 "//frc971/wpilib:buffered_pcm",
102 "//frc971/wpilib:dma",
103 "//frc971/wpilib:dma_edge_counting",
104 "//frc971/wpilib:encoder_and_potentiometer",
105 "//frc971/wpilib:gyro_sender",
106 "//frc971/wpilib:interrupt_edge_counting",
107 "//frc971/wpilib:joystick_sender",
108 "//frc971/wpilib:logging_queue",
109 "//frc971/wpilib:loop_output_handler",
110 "//frc971/wpilib:pdp_fetcher",
111 "//frc971/wpilib:wpilib_interface",
112 "//frc971/wpilib:wpilib_robot_base",
113 "//third_party:wpilib",
114 "//y2018:constants",
115 "//y2018/control_loops/superstructure:superstructure_queue",
116 ],
Neil Balchacfca5b2018-01-28 14:04:08 -0800117)