Brian Silverman | 8154ed1 | 2015-11-28 23:03:17 +0000 | [diff] [blame] | 1 | load('/aos/downloader/downloader', 'aos_downloader') |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 2 | |
| 3 | cc_library( |
| 4 | name = 'constants', |
Brian Silverman | 8154ed1 | 2015-11-28 23:03:17 +0000 | [diff] [blame] | 5 | visibility = ['//visibility:public'], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 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', |
Austin Schuh | f2a50ba | 2016-12-24 16:16:26 -0800 | [diff] [blame] | 15 | '//aos/common:time', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 16 | '//aos/common/network:team_number', |
| 17 | '//frc971/control_loops:state_feedback_loop', |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 18 | '//frc971:shifter_hall_effect', |
| 19 | '//frc971:constants', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 20 | '//y2015/control_loops/drivetrain:polydrivetrain_plants', |
Brian Silverman | 258b917 | 2015-09-19 14:32:57 -0400 | [diff] [blame] | 21 | '//y2015/autonomous:auto_queue', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 22 | ], |
| 23 | ) |
| 24 | |
| 25 | cc_binary( |
| 26 | name = 'joystick_reader', |
| 27 | srcs = [ |
| 28 | 'joystick_reader.cc', |
| 29 | ], |
| 30 | deps = [ |
Brian Silverman | c206573 | 2015-11-28 22:55:30 +0000 | [diff] [blame] | 31 | '//aos/input:joystick_input', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 32 | '//aos/linux_code:init', |
| 33 | '//aos/common/logging', |
| 34 | '//aos/common:time', |
| 35 | '//aos/common/util:log_interval', |
| 36 | '//aos/common/actions:action_lib', |
| 37 | '//frc971/queues:gyro', |
| 38 | '//y2015/control_loops/claw:claw_queue', |
Austin Schuh | 70810b9 | 2016-11-26 14:55:34 -0800 | [diff] [blame] | 39 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 40 | '//y2015/control_loops/fridge:fridge_queue', |
| 41 | '//y2015:constants', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 42 | '//frc971/autonomous:auto_queue', |
| 43 | '//y2015/actors:stack_action_lib', |
| 44 | '//y2015/actors:stack_and_lift_action_lib', |
| 45 | '//y2015/actors:stack_and_hold_action_lib', |
| 46 | '//y2015/actors:pickup_action_lib', |
| 47 | '//y2015/actors:lift_action_lib', |
| 48 | '//y2015/actors:held_to_lift_action_lib', |
| 49 | '//y2015/actors:can_pickup_action_lib', |
| 50 | '//y2015/actors:score_action_lib', |
| 51 | '//y2015/actors:horizontal_can_pickup_action_lib', |
| 52 | '//y2015/actors:fridge_profile_lib', |
| 53 | ], |
| 54 | ) |
Brian Silverman | 8154ed1 | 2015-11-28 23:03:17 +0000 | [diff] [blame] | 55 | |
| 56 | aos_downloader( |
| 57 | name = 'download', |
| 58 | start_srcs = [ |
| 59 | '//aos:prime_start_binaries', |
| 60 | '//y2015/control_loops/drivetrain:drivetrain', |
| 61 | '//y2015/control_loops/fridge:fridge', |
| 62 | '//y2015/control_loops/claw:claw', |
| 63 | '//y2015/autonomous:auto', |
| 64 | ':joystick_reader', |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 65 | ':wpilib_interface', |
Brian Silverman | 8154ed1 | 2015-11-28 23:03:17 +0000 | [diff] [blame] | 66 | '//y2015/http_status:http_status', |
| 67 | '//y2015/actors:binaries', |
Brian Silverman | 8154ed1 | 2015-11-28 23:03:17 +0000 | [diff] [blame] | 68 | ], |
| 69 | srcs = [ |
| 70 | '//aos:prime_binaries', |
| 71 | ], |
Austin Schuh | 9d92e6b | 2017-10-17 01:19:38 -0700 | [diff] [blame] | 72 | restricted_to = ['//tools:roborio'], |
Brian Silverman | 8154ed1 | 2015-11-28 23:03:17 +0000 | [diff] [blame] | 73 | ) |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 74 | |
| 75 | cc_binary( |
| 76 | name = 'wpilib_interface', |
| 77 | srcs = [ |
| 78 | 'wpilib_interface.cc', |
| 79 | ], |
| 80 | deps = [ |
| 81 | ':constants', |
| 82 | '//aos/linux_code:init', |
| 83 | '//aos/common:stl_mutex', |
| 84 | '//aos/common/logging', |
| 85 | '//third_party:wpilib', |
| 86 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
| 87 | '//y2015/control_loops/fridge:fridge_queue', |
| 88 | '//y2015/control_loops/claw:claw_queue', |
| 89 | '//y2015/autonomous:auto_queue', |
| 90 | '//frc971/autonomous:auto_queue', |
| 91 | '//aos/common/controls:control_loop', |
| 92 | '//aos/common/util:log_interval', |
| 93 | '//aos/common:time', |
| 94 | '//aos/common/logging:queue_logging', |
| 95 | '//aos/common/messages:robot_state', |
| 96 | '//aos/common/util:phased_loop', |
| 97 | '//aos/common/util:wrapping_counter', |
| 98 | '//frc971/wpilib:joystick_sender', |
| 99 | '//frc971/wpilib:loop_output_handler', |
| 100 | '//frc971/wpilib:buffered_pcm', |
| 101 | '//frc971/wpilib:gyro_sender', |
| 102 | '//frc971/wpilib:dma_edge_counting', |
| 103 | '//frc971/wpilib:interrupt_edge_counting', |
| 104 | '//frc971/wpilib:encoder_and_potentiometer', |
| 105 | '//frc971/wpilib:wpilib_robot_base', |
| 106 | '//frc971/control_loops:queues', |
| 107 | '//frc971/wpilib:logging_queue', |
| 108 | '//frc971/wpilib:wpilib_interface', |
| 109 | '//frc971/wpilib:pdp_fetcher', |
| 110 | '//frc971/wpilib:dma', |
| 111 | ], |
Austin Schuh | 9d92e6b | 2017-10-17 01:19:38 -0700 | [diff] [blame] | 112 | restricted_to = ['//tools:roborio'], |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 113 | ) |