Austin Schuh | 9d92e6b | 2017-10-17 01:19:38 -0700 | [diff] [blame^] | 1 | load('//aos/downloader:downloader.bzl', 'aos_downloader') |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 2 | |
Tyler Chatow | 6107aba | 2017-01-22 01:39:40 +0000 | [diff] [blame] | 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', |
Tyler Chatow | 6107aba | 2017-01-22 01:39:40 +0000 | [diff] [blame] | 14 | '//aos/common/network:team_number', |
| 15 | '//aos/common:mutex', |
Sabina Davis | 2ed5ea2 | 2017-09-26 22:27:42 -0700 | [diff] [blame] | 16 | '//aos:once', |
Tyler Chatow | 6107aba | 2017-01-22 01:39:40 +0000 | [diff] [blame] | 17 | '//frc971:constants', |
Philipp Schrader | 9a83336 | 2017-04-09 22:56:16 +0000 | [diff] [blame] | 18 | '//frc971/shooter_interpolation:interpolation', |
Ed Jordan | 8683f43 | 2017-02-12 00:13:26 +0000 | [diff] [blame] | 19 | '//y2017/control_loops/drivetrain:polydrivetrain_plants', |
Austin Schuh | d5ccb86 | 2017-03-11 22:06:36 -0800 | [diff] [blame] | 20 | '//y2017/control_loops/superstructure/column:column_plants', |
Brian Silverman | 052e69d | 2017-02-12 16:19:55 -0800 | [diff] [blame] | 21 | '//y2017/control_loops/superstructure/hood:hood_plants', |
Austin Schuh | d5ccb86 | 2017-03-11 22:06:36 -0800 | [diff] [blame] | 22 | '//y2017/control_loops/superstructure/intake:intake_plants', |
| 23 | '//y2017/control_loops/superstructure/shooter:shooter_plants', |
Tyler Chatow | 6107aba | 2017-01-22 01:39:40 +0000 | [diff] [blame] | 24 | ], |
| 25 | ) |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 26 | |
| 27 | cc_binary( |
Campbell Crowley | 71b5f13 | 2017-02-18 13:16:08 -0800 | [diff] [blame] | 28 | 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', |
Austin Schuh | d5ccb86 | 2017-03-11 22:06:36 -0800 | [diff] [blame] | 42 | '//y2017/actors:autonomous_action_lib', |
Campbell Crowley | 71b5f13 | 2017-02-18 13:16:08 -0800 | [diff] [blame] | 43 | '//y2017/control_loops/superstructure:superstructure_queue', |
| 44 | ], |
| 45 | ) |
| 46 | |
| 47 | cc_binary( |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 48 | name = 'wpilib_interface', |
| 49 | srcs = [ |
| 50 | 'wpilib_interface.cc', |
| 51 | ], |
| 52 | deps = [ |
| 53 | ':constants', |
| 54 | '//aos/common:stl_mutex', |
| 55 | '//aos/common/logging', |
| 56 | '//aos/common:math', |
| 57 | '//aos/common/controls:control_loop', |
| 58 | '//aos/common/util:log_interval', |
| 59 | '//aos/common:time', |
| 60 | '//aos/common/logging:queue_logging', |
| 61 | '//aos/common/messages:robot_state', |
| 62 | '//aos/common/util:phased_loop', |
| 63 | '//aos/common/util:wrapping_counter', |
| 64 | '//aos/linux_code:init', |
| 65 | '//third_party:wpilib', |
Philipp Schrader | 996a2a2 | 2017-02-22 05:02:48 +0000 | [diff] [blame] | 66 | '//frc971/autonomous:auto_queue', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 67 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
| 68 | '//frc971/control_loops:queues', |
| 69 | '//frc971/wpilib:joystick_sender', |
| 70 | '//frc971/wpilib:loop_output_handler', |
| 71 | '//frc971/wpilib:buffered_pcm', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 72 | '//frc971/wpilib:dma_edge_counting', |
| 73 | '//frc971/wpilib:interrupt_edge_counting', |
| 74 | '//frc971/wpilib:wpilib_robot_base', |
| 75 | '//frc971/wpilib:encoder_and_potentiometer', |
| 76 | '//frc971/wpilib:logging_queue', |
| 77 | '//frc971/wpilib:wpilib_interface', |
| 78 | '//frc971/wpilib:pdp_fetcher', |
| 79 | '//frc971/wpilib:ADIS16448', |
| 80 | '//frc971/wpilib:dma', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 81 | '//y2017/control_loops/superstructure:superstructure_queue', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 82 | ], |
Austin Schuh | 9d92e6b | 2017-10-17 01:19:38 -0700 | [diff] [blame^] | 83 | restricted_to = ['//tools:roborio'], |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 84 | ) |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 85 | |
| 86 | aos_downloader( |
Austin Schuh | 23cc9ed | 2017-02-24 19:14:06 -0800 | [diff] [blame] | 87 | name = 'download', |
| 88 | start_srcs = [ |
| 89 | ':joystick_reader', |
| 90 | ':wpilib_interface', |
| 91 | '//aos:prime_start_binaries', |
Austin Schuh | 69f8a4f | 2017-03-15 20:19:23 -0700 | [diff] [blame] | 92 | '//y2017/actors:autonomous_action', |
Austin Schuh | 23cc9ed | 2017-02-24 19:14:06 -0800 | [diff] [blame] | 93 | '//y2017/control_loops/drivetrain:drivetrain', |
| 94 | '//y2017/control_loops/superstructure:superstructure', |
Austin Schuh | 69f8a4f | 2017-03-15 20:19:23 -0700 | [diff] [blame] | 95 | '//y2017/vision:target_receiver', |
Austin Schuh | 23cc9ed | 2017-02-24 19:14:06 -0800 | [diff] [blame] | 96 | ], |
| 97 | srcs = [ |
| 98 | '//aos:prime_binaries', |
| 99 | ], |
Austin Schuh | 9d92e6b | 2017-10-17 01:19:38 -0700 | [diff] [blame^] | 100 | restricted_to = ['//tools:roborio'], |
Austin Schuh | 23cc9ed | 2017-02-24 19:14:06 -0800 | [diff] [blame] | 101 | ) |
| 102 | |
| 103 | aos_downloader( |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 104 | name = 'download_stripped', |
| 105 | start_srcs = [ |
Austin Schuh | 23cc9ed | 2017-02-24 19:14:06 -0800 | [diff] [blame] | 106 | ':joystick_reader.stripped', |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 107 | ':wpilib_interface.stripped', |
| 108 | '//aos:prime_start_binaries_stripped', |
Austin Schuh | 69f8a4f | 2017-03-15 20:19:23 -0700 | [diff] [blame] | 109 | '//y2017/actors:autonomous_action.stripped', |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 110 | '//y2017/control_loops/drivetrain:drivetrain.stripped', |
| 111 | '//y2017/control_loops/superstructure:superstructure.stripped', |
Austin Schuh | 69f8a4f | 2017-03-15 20:19:23 -0700 | [diff] [blame] | 112 | '//y2017/vision:target_receiver.stripped', |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 113 | ], |
| 114 | srcs = [ |
| 115 | '//aos:prime_binaries_stripped', |
| 116 | ], |
Austin Schuh | 9d92e6b | 2017-10-17 01:19:38 -0700 | [diff] [blame^] | 117 | restricted_to = ['//tools:roborio'], |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 118 | ) |