blob: 71bdace7a568c836fc544c86cbacc0b306c18a1f [file] [log] [blame]
Comran Morshed9a9948c2016-01-16 15:58:04 +00001load('/aos/downloader/downloader', 'aos_downloader')
2
3cc_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/control_loops:state_feedback_loop',
Comran Morshed9a9948c2016-01-16 15:58:04 +000018 '//frc971:shifter_hall_effect',
Austin Schuh2fc10fa2016-02-08 00:44:34 -080019 '//frc971:constants',
Comran Morshed6c6a0a92016-01-17 12:45:16 +000020 '//y2016/control_loops/drivetrain:polydrivetrain_plants',
Comran Morshed9a9948c2016-01-16 15:58:04 +000021 ],
22)
23
24cc_binary(
25 name = 'joystick_reader',
26 srcs = [
27 'joystick_reader.cc',
28 ],
29 deps = [
30 ':constants',
Austin Schuh45d07f62016-03-13 15:33:31 -070031 '//aos/common/actions:action_lib',
32 '//aos/common/logging',
33 '//aos/common/util:log_interval',
34 '//aos/common:time',
Comran Morshed9a9948c2016-01-16 15:58:04 +000035 '//aos/input:joystick_input',
36 '//aos/linux_code:init',
Austin Schuh45d07f62016-03-13 15:33:31 -070037 '//frc971/autonomous:auto_queue',
Comran Morshed9a9948c2016-01-16 15:58:04 +000038 '//frc971/control_loops/drivetrain:drivetrain_queue',
39 '//frc971/queues:gyro',
Comran Morshede68e3732016-03-12 14:12:11 +000040 '//y2016/actors:autonomous_action_lib',
Comran Morshed200dd4b2016-02-16 17:54:58 +000041 '//y2016/control_loops/shooter:shooter_queue',
Austin Schuh45d07f62016-03-13 15:33:31 -070042 '//y2016/control_loops/superstructure:superstructure_lib',
Comran Morshed200dd4b2016-02-16 17:54:58 +000043 '//y2016/control_loops/superstructure:superstructure_queue',
Comran Morshedaa0573c2016-03-05 19:05:54 +000044 '//y2016/queues:ball_detector',
Comran Morshed9a9948c2016-01-16 15:58:04 +000045 ],
46)
47
48aos_downloader(
49 name = 'download',
50 start_srcs = [
Comran Morshed9a9948c2016-01-16 15:58:04 +000051 ':joystick_reader',
Comran Morshed9a9948c2016-01-16 15:58:04 +000052 '//aos:prime_start_binaries',
Comran Morshed6c6a0a92016-01-17 12:45:16 +000053 '//y2016/control_loops/drivetrain:drivetrain',
Austin Schuh9f77fd22016-02-21 02:53:58 -080054 '//y2016/control_loops/superstructure:superstructure',
55 '//y2016/control_loops/shooter:shooter',
Comran Morshede68e3732016-03-12 14:12:11 +000056 '//y2016/actors:autonomous_action',
Comran Morshed6c6a0a92016-01-17 12:45:16 +000057 '//y2016/wpilib:wpilib_interface',
Comran Morshed9a9948c2016-01-16 15:58:04 +000058 ],
59 srcs = [
60 '//aos:prime_binaries',
61 ],
62)
Austin Schuhc80dd152016-02-29 01:47:44 -080063
64aos_downloader(
65 name = 'download_stripped',
66 start_srcs = [
67 ':joystick_reader.stripped',
68 '//aos:prime_start_binaries_stripped',
69 '//y2016/control_loops/drivetrain:drivetrain.stripped',
70 '//y2016/control_loops/superstructure:superstructure.stripped',
71 '//y2016/control_loops/shooter:shooter.stripped',
Comran Morshede68e3732016-03-12 14:12:11 +000072 '//y2016/actors:autonomous_action.stripped',
Austin Schuhc80dd152016-02-29 01:47:44 -080073 '//y2016/wpilib:wpilib_interface.stripped',
74 ],
75 srcs = [
76 '//aos:prime_binaries_stripped',
77 ],
78)