blob: 4e66d6fc490ba21a269b09136ee88717b700f7ec [file] [log] [blame]
Austin Schuh7b9a3ba2017-02-19 23:11:45 -08001load('/aos/downloader/downloader', 'aos_downloader')
2
Tyler Chatow6107aba2017-01-22 01:39:40 +00003cc_library(
4 name = 'constants',
5 visibility = ['//visibility:public'],
6 srcs = [
7 'constants.cc',
8 ],
9 hdrs = [
10 'constants.h',
11 ],
12 deps = [
13 '//aos/common/logging',
14 '//aos/common:once',
15 '//aos/common/network:team_number',
16 '//aos/common:mutex',
17 '//frc971:constants',
Ed Jordan8683f432017-02-12 00:13:26 +000018 '//y2017/control_loops/drivetrain:polydrivetrain_plants',
Brian Silverman052e69d2017-02-12 16:19:55 -080019 '//y2017/control_loops/superstructure/shooter:shooter_plants',
20 '//y2017/control_loops/superstructure/intake:intake_plants',
21 '//y2017/control_loops/superstructure/turret:turret_plants',
22 '//y2017/control_loops/superstructure/indexer:indexer_plants',
23 '//y2017/control_loops/superstructure/hood:hood_plants',
Tyler Chatow6107aba2017-01-22 01:39:40 +000024 ],
25)
Brian Silverman06016bc2017-02-11 16:34:34 -080026
27cc_binary(
Campbell Crowley71b5f132017-02-18 13:16:08 -080028 name = 'joystick_reader',
29 srcs = [
30 'joystick_reader.cc',
31 ],
32 deps = [
33 ':constants',
34 '//aos/common/actions:action_lib',
35 '//aos/common/logging',
36 '//aos/common/util:log_interval',
37 '//aos/common:time',
38 '//aos/input:joystick_input',
39 '//aos/linux_code:init',
40 '//frc971/autonomous:auto_queue',
41 '//frc971/control_loops/drivetrain:drivetrain_queue',
42 '//y2017/control_loops/superstructure:superstructure_queue',
43 ],
44)
45
46cc_binary(
Brian Silverman06016bc2017-02-11 16:34:34 -080047 name = 'wpilib_interface',
48 srcs = [
49 'wpilib_interface.cc',
50 ],
51 deps = [
52 ':constants',
53 '//aos/common:stl_mutex',
54 '//aos/common/logging',
55 '//aos/common:math',
56 '//aos/common/controls:control_loop',
57 '//aos/common/util:log_interval',
58 '//aos/common:time',
59 '//aos/common/logging:queue_logging',
60 '//aos/common/messages:robot_state',
61 '//aos/common/util:phased_loop',
62 '//aos/common/util:wrapping_counter',
63 '//aos/linux_code:init',
64 '//third_party:wpilib',
65 '//frc971/control_loops/drivetrain:drivetrain_queue',
66 '//frc971/control_loops:queues',
67 '//frc971/wpilib:joystick_sender',
68 '//frc971/wpilib:loop_output_handler',
69 '//frc971/wpilib:buffered_pcm',
Brian Silverman06016bc2017-02-11 16:34:34 -080070 '//frc971/wpilib:dma_edge_counting',
71 '//frc971/wpilib:interrupt_edge_counting',
72 '//frc971/wpilib:wpilib_robot_base',
73 '//frc971/wpilib:encoder_and_potentiometer',
74 '//frc971/wpilib:logging_queue',
75 '//frc971/wpilib:wpilib_interface',
76 '//frc971/wpilib:pdp_fetcher',
77 '//frc971/wpilib:ADIS16448',
78 '//frc971/wpilib:dma',
Brian Silverman06016bc2017-02-11 16:34:34 -080079 '//y2017/control_loops/superstructure:superstructure_queue',
80 '//y2017/actors:autonomous_action_queue',
81 ],
82)
Austin Schuh7b9a3ba2017-02-19 23:11:45 -080083
84aos_downloader(
Austin Schuh23cc9ed2017-02-24 19:14:06 -080085 name = 'download',
86 start_srcs = [
87 ':joystick_reader',
88 ':wpilib_interface',
89 '//aos:prime_start_binaries',
90 '//y2017/control_loops/drivetrain:drivetrain',
91 '//y2017/control_loops/superstructure:superstructure',
92 '//y2017/actors:autonomous_action',
93 ],
94 srcs = [
95 '//aos:prime_binaries',
96 ],
97)
98
99aos_downloader(
Austin Schuh7b9a3ba2017-02-19 23:11:45 -0800100 name = 'download_stripped',
101 start_srcs = [
Austin Schuh23cc9ed2017-02-24 19:14:06 -0800102 ':joystick_reader.stripped',
Austin Schuh7b9a3ba2017-02-19 23:11:45 -0800103 ':wpilib_interface.stripped',
104 '//aos:prime_start_binaries_stripped',
105 '//y2017/control_loops/drivetrain:drivetrain.stripped',
106 '//y2017/control_loops/superstructure:superstructure.stripped',
107 '//y2017/actors:autonomous_action.stripped',
108 ],
109 srcs = [
110 '//aos:prime_binaries_stripped',
111 ],
112)