blob: 4a2e768cfee29ba7684fa4894214a1c79c20d1da [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',
Comran Morshed9a9948c2016-01-16 15:58:04 +000055 '//aos:prime_start_binaries',
Comran Morshed6c6a0a92016-01-17 12:45:16 +000056 '//y2016/control_loops/drivetrain:drivetrain',
Austin Schuh9f77fd22016-02-21 02:53:58 -080057 '//y2016/control_loops/superstructure:superstructure',
58 '//y2016/control_loops/shooter:shooter',
Comran Morsheddaf69232016-04-20 22:25:37 -070059 '//y2016/dashboard:dashboard',
Comran Morshede68e3732016-03-12 14:12:11 +000060 '//y2016/actors:autonomous_action',
Diana Vandenberg9cc9ab62016-04-20 21:27:47 -070061 '//y2016/actors:superstructure_action',
Austin Schuh18799112016-03-16 22:09:54 -070062 '//y2016/actors:vision_align_action',
Comran Morshed6c6a0a92016-01-17 12:45:16 +000063 '//y2016/wpilib:wpilib_interface',
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',
78 '//aos:prime_start_binaries_stripped',
79 '//y2016/control_loops/drivetrain:drivetrain.stripped',
80 '//y2016/control_loops/superstructure:superstructure.stripped',
81 '//y2016/control_loops/shooter:shooter.stripped',
Comran Morsheddaf69232016-04-20 22:25:37 -070082 '//y2016/dashboard:dashboard.stripped',
Comran Morshede68e3732016-03-12 14:12:11 +000083 '//y2016/actors:autonomous_action.stripped',
Diana Vandenberg9cc9ab62016-04-20 21:27:47 -070084 '//y2016/actors:superstructure_action.stripped',
Austin Schuh18799112016-03-16 22:09:54 -070085 '//y2016/actors:vision_align_action.stripped',
Austin Schuhc80dd152016-02-29 01:47:44 -080086 '//y2016/wpilib:wpilib_interface.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)