Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 1 | load('/aos/downloader/downloader', 'aos_downloader') |
| 2 | |
| 3 | cc_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', |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame^] | 14 | '//aos:once', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 15 | '//aos/common/network:team_number', |
| 16 | '//aos/common:mutex', |
| 17 | '//frc971/control_loops:state_feedback_loop', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 18 | '//frc971:shifter_hall_effect', |
Austin Schuh | 2fc10fa | 2016-02-08 00:44:34 -0800 | [diff] [blame] | 19 | '//frc971:constants', |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 20 | '//y2016/control_loops/drivetrain:polydrivetrain_plants', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 21 | ], |
| 22 | ) |
| 23 | |
| 24 | cc_binary( |
| 25 | name = 'joystick_reader', |
| 26 | srcs = [ |
| 27 | 'joystick_reader.cc', |
| 28 | ], |
| 29 | deps = [ |
| 30 | ':constants', |
Austin Schuh | 45d07f6 | 2016-03-13 15:33:31 -0700 | [diff] [blame] | 31 | '//aos/common/actions:action_lib', |
| 32 | '//aos/common/logging', |
| 33 | '//aos/common/util:log_interval', |
| 34 | '//aos/common:time', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 35 | '//aos/input:joystick_input', |
| 36 | '//aos/linux_code:init', |
Austin Schuh | 45d07f6 | 2016-03-13 15:33:31 -0700 | [diff] [blame] | 37 | '//frc971/autonomous:auto_queue', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 38 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
| 39 | '//frc971/queues:gyro', |
Comran Morshed | e68e373 | 2016-03-12 14:12:11 +0000 | [diff] [blame] | 40 | '//y2016/actors:autonomous_action_lib', |
Diana Vandenberg | 9cc9ab6 | 2016-04-20 21:27:47 -0700 | [diff] [blame] | 41 | '//y2016/actors:superstructure_action_lib', |
Austin Schuh | 1879911 | 2016-03-16 22:09:54 -0700 | [diff] [blame] | 42 | '//y2016/actors:vision_align_action_lib', |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 43 | '//y2016/control_loops/shooter:shooter_queue', |
Austin Schuh | 45d07f6 | 2016-03-13 15:33:31 -0700 | [diff] [blame] | 44 | '//y2016/control_loops/superstructure:superstructure_lib', |
Comran Morshed | 200dd4b | 2016-02-16 17:54:58 +0000 | [diff] [blame] | 45 | '//y2016/control_loops/superstructure:superstructure_queue', |
Comran Morshed | aa0573c | 2016-03-05 19:05:54 +0000 | [diff] [blame] | 46 | '//y2016/queues:ball_detector', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 47 | ], |
| 48 | ) |
| 49 | |
| 50 | aos_downloader( |
| 51 | name = 'download', |
| 52 | start_srcs = [ |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 53 | ':joystick_reader', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 54 | ':wpilib_interface', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 55 | '//aos:prime_start_binaries', |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 56 | '//y2016/control_loops/drivetrain:drivetrain', |
Austin Schuh | 9f77fd2 | 2016-02-21 02:53:58 -0800 | [diff] [blame] | 57 | '//y2016/control_loops/superstructure:superstructure', |
| 58 | '//y2016/control_loops/shooter:shooter', |
Comran Morshed | daf6923 | 2016-04-20 22:25:37 -0700 | [diff] [blame] | 59 | '//y2016/dashboard:dashboard', |
Comran Morshed | e68e373 | 2016-03-12 14:12:11 +0000 | [diff] [blame] | 60 | '//y2016/actors:autonomous_action', |
Diana Vandenberg | 9cc9ab6 | 2016-04-20 21:27:47 -0700 | [diff] [blame] | 61 | '//y2016/actors:superstructure_action', |
Austin Schuh | 1879911 | 2016-03-16 22:09:54 -0700 | [diff] [blame] | 62 | '//y2016/actors:vision_align_action', |
Austin Schuh | 1879911 | 2016-03-16 22:09:54 -0700 | [diff] [blame] | 63 | '//y2016/vision:target_receiver', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 64 | ], |
| 65 | srcs = [ |
| 66 | '//aos:prime_binaries', |
| 67 | ], |
Comran Morshed | 3896733 | 2016-04-23 19:26:48 -0700 | [diff] [blame] | 68 | dirs = [ |
| 69 | '//y2016/dashboard:www_files', |
| 70 | ], |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 71 | ) |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 72 | |
| 73 | aos_downloader( |
| 74 | name = 'download_stripped', |
| 75 | start_srcs = [ |
| 76 | ':joystick_reader.stripped', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 77 | ':wpilib_interface.stripped', |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 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 Morshed | daf6923 | 2016-04-20 22:25:37 -0700 | [diff] [blame] | 82 | '//y2016/dashboard:dashboard.stripped', |
Comran Morshed | e68e373 | 2016-03-12 14:12:11 +0000 | [diff] [blame] | 83 | '//y2016/actors:autonomous_action.stripped', |
Diana Vandenberg | 9cc9ab6 | 2016-04-20 21:27:47 -0700 | [diff] [blame] | 84 | '//y2016/actors:superstructure_action.stripped', |
Austin Schuh | 1879911 | 2016-03-16 22:09:54 -0700 | [diff] [blame] | 85 | '//y2016/actors:vision_align_action.stripped', |
Austin Schuh | 1879911 | 2016-03-16 22:09:54 -0700 | [diff] [blame] | 86 | '//y2016/vision:target_receiver.stripped', |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 87 | ], |
| 88 | srcs = [ |
| 89 | '//aos:prime_binaries_stripped', |
| 90 | ], |
Comran Morshed | 3896733 | 2016-04-23 19:26:48 -0700 | [diff] [blame] | 91 | dirs = [ |
| 92 | '//y2016/dashboard:www_files', |
| 93 | ], |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 94 | ) |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 95 | |
| 96 | cc_binary( |
| 97 | name = 'wpilib_interface', |
| 98 | srcs = [ |
| 99 | 'wpilib_interface.cc', |
| 100 | ], |
| 101 | deps = [ |
| 102 | ':constants', |
| 103 | '//aos/common:stl_mutex', |
| 104 | '//aos/common/logging', |
| 105 | '//aos/common:math', |
| 106 | '//aos/common/controls:control_loop', |
| 107 | '//aos/common/util:log_interval', |
| 108 | '//aos/common:time', |
| 109 | '//aos/common/logging:queue_logging', |
| 110 | '//aos/common/messages:robot_state', |
| 111 | '//aos/common/util:phased_loop', |
| 112 | '//aos/common/util:wrapping_counter', |
| 113 | '//aos/linux_code:init', |
| 114 | '//third_party:wpilib', |
Philipp Schrader | 4bd29b1 | 2017-02-22 04:42:27 +0000 | [diff] [blame] | 115 | '//frc971/autonomous:auto_queue', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 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', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 135 | ], |
| 136 | ) |