blob: a16849679ccfbea8fa6113f1c07f1e31dfc38803 [file] [log] [blame]
Comran Morshed9a9948c2016-01-16 15:58:04 +00001load('/aos/downloader/downloader', 'aos_downloader')
Comran Morshed38967332016-04-23 19:26:48 -07002load('/aos/downloader/downloader', 'aos_downloader_dir')
Comran Morshed9a9948c2016-01-16 15:58:04 +00003
4cc_library(
5 name = 'constants',
6 visibility = ['//visibility:public'],
7 srcs = [
8 'constants.cc',
9 ],
10 hdrs = [
11 'constants.h',
12 ],
13 deps = [
14 '//aos/common/logging',
15 '//aos/common:once',
16 '//aos/common/network:team_number',
17 '//aos/common:mutex',
18 '//frc971/control_loops:state_feedback_loop',
Comran Morshed9a9948c2016-01-16 15:58:04 +000019 '//frc971:shifter_hall_effect',
Austin Schuh2fc10fa2016-02-08 00:44:34 -080020 '//frc971:constants',
Comran Morshed6c6a0a92016-01-17 12:45:16 +000021 '//y2016/control_loops/drivetrain:polydrivetrain_plants',
Comran Morshed9a9948c2016-01-16 15:58:04 +000022 ],
23)
24
25cc_binary(
26 name = 'joystick_reader',
27 srcs = [
28 'joystick_reader.cc',
29 ],
30 deps = [
31 ':constants',
Austin Schuh45d07f62016-03-13 15:33:31 -070032 '//aos/common/actions:action_lib',
33 '//aos/common/logging',
34 '//aos/common/util:log_interval',
35 '//aos/common:time',
Comran Morshed9a9948c2016-01-16 15:58:04 +000036 '//aos/input:joystick_input',
37 '//aos/linux_code:init',
Austin Schuh45d07f62016-03-13 15:33:31 -070038 '//frc971/autonomous:auto_queue',
Comran Morshed9a9948c2016-01-16 15:58:04 +000039 '//frc971/control_loops/drivetrain:drivetrain_queue',
40 '//frc971/queues:gyro',
Comran Morshede68e3732016-03-12 14:12:11 +000041 '//y2016/actors:autonomous_action_lib',
Diana Vandenberg9cc9ab62016-04-20 21:27:47 -070042 '//y2016/actors:superstructure_action_lib',
Austin Schuh18799112016-03-16 22:09:54 -070043 '//y2016/actors:vision_align_action_lib',
Comran Morshed200dd4b2016-02-16 17:54:58 +000044 '//y2016/control_loops/shooter:shooter_queue',
Austin Schuh45d07f62016-03-13 15:33:31 -070045 '//y2016/control_loops/superstructure:superstructure_lib',
Comran Morshed200dd4b2016-02-16 17:54:58 +000046 '//y2016/control_loops/superstructure:superstructure_queue',
Comran Morshedaa0573c2016-03-05 19:05:54 +000047 '//y2016/queues:ball_detector',
Comran Morshed9a9948c2016-01-16 15:58:04 +000048 ],
49)
50
51aos_downloader(
52 name = 'download',
53 start_srcs = [
Comran Morshed9a9948c2016-01-16 15:58:04 +000054 ':joystick_reader',
Brian Silverman06016bc2017-02-11 16:34:34 -080055 ':wpilib_interface',
Comran Morshed9a9948c2016-01-16 15:58:04 +000056 '//aos:prime_start_binaries',
Comran Morshed6c6a0a92016-01-17 12:45:16 +000057 '//y2016/control_loops/drivetrain:drivetrain',
Austin Schuh9f77fd22016-02-21 02:53:58 -080058 '//y2016/control_loops/superstructure:superstructure',
59 '//y2016/control_loops/shooter:shooter',
Comran Morsheddaf69232016-04-20 22:25:37 -070060 '//y2016/dashboard:dashboard',
Comran Morshede68e3732016-03-12 14:12:11 +000061 '//y2016/actors:autonomous_action',
Diana Vandenberg9cc9ab62016-04-20 21:27:47 -070062 '//y2016/actors:superstructure_action',
Austin Schuh18799112016-03-16 22:09:54 -070063 '//y2016/actors:vision_align_action',
Austin Schuh18799112016-03-16 22:09:54 -070064 '//y2016/vision:target_receiver',
Comran Morshed9a9948c2016-01-16 15:58:04 +000065 ],
66 srcs = [
67 '//aos:prime_binaries',
68 ],
Comran Morshed38967332016-04-23 19:26:48 -070069 dirs = [
70 '//y2016/dashboard:www_files',
71 ],
Comran Morshed9a9948c2016-01-16 15:58:04 +000072)
Austin Schuhc80dd152016-02-29 01:47:44 -080073
74aos_downloader(
75 name = 'download_stripped',
76 start_srcs = [
77 ':joystick_reader.stripped',
Brian Silverman06016bc2017-02-11 16:34:34 -080078 ':wpilib_interface.stripped',
Austin Schuhc80dd152016-02-29 01:47:44 -080079 '//aos:prime_start_binaries_stripped',
80 '//y2016/control_loops/drivetrain:drivetrain.stripped',
81 '//y2016/control_loops/superstructure:superstructure.stripped',
82 '//y2016/control_loops/shooter:shooter.stripped',
Comran Morsheddaf69232016-04-20 22:25:37 -070083 '//y2016/dashboard:dashboard.stripped',
Comran Morshede68e3732016-03-12 14:12:11 +000084 '//y2016/actors:autonomous_action.stripped',
Diana Vandenberg9cc9ab62016-04-20 21:27:47 -070085 '//y2016/actors:superstructure_action.stripped',
Austin Schuh18799112016-03-16 22:09:54 -070086 '//y2016/actors:vision_align_action.stripped',
Austin Schuh18799112016-03-16 22:09:54 -070087 '//y2016/vision:target_receiver.stripped',
Austin Schuhc80dd152016-02-29 01:47:44 -080088 ],
89 srcs = [
90 '//aos:prime_binaries_stripped',
91 ],
Comran Morshed38967332016-04-23 19:26:48 -070092 dirs = [
93 '//y2016/dashboard:www_files',
94 ],
Austin Schuhc80dd152016-02-29 01:47:44 -080095)
Brian Silverman06016bc2017-02-11 16:34:34 -080096
97cc_binary(
98 name = 'wpilib_interface',
99 srcs = [
100 'wpilib_interface.cc',
101 ],
102 deps = [
103 ':constants',
104 '//aos/common:stl_mutex',
105 '//aos/common/logging',
106 '//aos/common:math',
107 '//aos/common/controls:control_loop',
108 '//aos/common/util:log_interval',
109 '//aos/common:time',
110 '//aos/common/logging:queue_logging',
111 '//aos/common/messages:robot_state',
112 '//aos/common/util:phased_loop',
113 '//aos/common/util:wrapping_counter',
114 '//aos/linux_code:init',
115 '//third_party:wpilib',
116 '//frc971/control_loops/drivetrain:drivetrain_queue',
117 '//frc971/control_loops:queues',
118 '//frc971/wpilib:joystick_sender',
119 '//frc971/wpilib:loop_output_handler',
120 '//frc971/wpilib:buffered_pcm',
121 '//frc971/wpilib:gyro_sender',
122 '//frc971/wpilib:dma_edge_counting',
123 '//frc971/wpilib:interrupt_edge_counting',
124 '//frc971/wpilib:wpilib_robot_base',
125 '//frc971/wpilib:encoder_and_potentiometer',
126 '//frc971/wpilib:logging_queue',
127 '//frc971/wpilib:wpilib_interface',
128 '//frc971/wpilib:pdp_fetcher',
129 '//frc971/wpilib:ADIS16448',
130 '//frc971/wpilib:dma',
131 '//y2016/control_loops/drivetrain:polydrivetrain_plants',
132 '//y2016/control_loops/shooter:shooter_queue',
133 '//y2016/control_loops/superstructure:superstructure_queue',
134 '//y2016/queues:ball_detector',
135 '//y2016/actors:autonomous_action_queue',
136 ],
137)