Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 1 | load('/aos/downloader/downloader', 'aos_downloader') |
| 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', |
| 14 | '//aos/common:once', |
| 15 | '//aos/common/network:team_number', |
| 16 | '//aos/common:mutex', |
| 17 | '//frc971:constants', |
Ed Jordan | 8683f43 | 2017-02-12 00:13:26 +0000 | [diff] [blame] | 18 | '//y2017/control_loops/drivetrain:polydrivetrain_plants', |
Brian Silverman | 052e69d | 2017-02-12 16:19:55 -0800 | [diff] [blame] | 19 | '//y2017/control_loops/superstructure/shooter:shooter_plants', |
| 20 | '//y2017/control_loops/superstructure/intake:intake_plants', |
| 21 | '//y2017/control_loops/superstructure/turret:turret_plants', |
| 22 | '//y2017/control_loops/superstructure/indexer:indexer_plants', |
| 23 | '//y2017/control_loops/superstructure/hood:hood_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( |
| 28 | name = 'wpilib_interface', |
| 29 | srcs = [ |
| 30 | 'wpilib_interface.cc', |
| 31 | ], |
| 32 | deps = [ |
| 33 | ':constants', |
| 34 | '//aos/common:stl_mutex', |
| 35 | '//aos/common/logging', |
| 36 | '//aos/common:math', |
| 37 | '//aos/common/controls:control_loop', |
| 38 | '//aos/common/util:log_interval', |
| 39 | '//aos/common:time', |
| 40 | '//aos/common/logging:queue_logging', |
| 41 | '//aos/common/messages:robot_state', |
| 42 | '//aos/common/util:phased_loop', |
| 43 | '//aos/common/util:wrapping_counter', |
| 44 | '//aos/linux_code:init', |
| 45 | '//third_party:wpilib', |
Philipp Schrader | 996a2a2 | 2017-02-22 05:02:48 +0000 | [diff] [blame^] | 46 | '//frc971/autonomous:auto_queue', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 47 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
| 48 | '//frc971/control_loops:queues', |
| 49 | '//frc971/wpilib:joystick_sender', |
| 50 | '//frc971/wpilib:loop_output_handler', |
| 51 | '//frc971/wpilib:buffered_pcm', |
| 52 | '//frc971/wpilib:gyro_sender', |
| 53 | '//frc971/wpilib:dma_edge_counting', |
| 54 | '//frc971/wpilib:interrupt_edge_counting', |
| 55 | '//frc971/wpilib:wpilib_robot_base', |
| 56 | '//frc971/wpilib:encoder_and_potentiometer', |
| 57 | '//frc971/wpilib:logging_queue', |
| 58 | '//frc971/wpilib:wpilib_interface', |
| 59 | '//frc971/wpilib:pdp_fetcher', |
| 60 | '//frc971/wpilib:ADIS16448', |
| 61 | '//frc971/wpilib:dma', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 62 | '//y2017/control_loops/superstructure:superstructure_queue', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 63 | ], |
| 64 | ) |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 65 | |
| 66 | aos_downloader( |
| 67 | name = 'download', |
| 68 | start_srcs = [ |
| 69 | #':joystick_reader', |
| 70 | ':wpilib_interface', |
| 71 | '//aos:prime_start_binaries', |
| 72 | '//y2017/control_loops/drivetrain:drivetrain', |
| 73 | '//y2017/control_loops/superstructure:superstructure', |
| 74 | '//y2017/actors:autonomous_action', |
| 75 | ], |
| 76 | srcs = [ |
| 77 | '//aos:prime_binaries', |
| 78 | ], |
| 79 | ) |
| 80 | |
| 81 | aos_downloader( |
| 82 | name = 'download_stripped', |
| 83 | start_srcs = [ |
| 84 | #':joystick_reader.stripped', |
| 85 | ':wpilib_interface.stripped', |
| 86 | '//aos:prime_start_binaries_stripped', |
| 87 | '//y2017/control_loops/drivetrain:drivetrain.stripped', |
| 88 | '//y2017/control_loops/superstructure:superstructure.stripped', |
| 89 | '//y2017/actors:autonomous_action.stripped', |
| 90 | ], |
| 91 | srcs = [ |
| 92 | '//aos:prime_binaries_stripped', |
| 93 | ], |
| 94 | ) |