Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 1 | load("//aos/downloader:downloader.bzl", "aos_downloader") |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 2 | |
| 3 | cc_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 4 | name = "constants", |
| 5 | srcs = [ |
| 6 | "constants.cc", |
| 7 | ], |
| 8 | hdrs = [ |
| 9 | "constants.h", |
| 10 | ], |
| 11 | visibility = ["//visibility:public"], |
| 12 | deps = [ |
| 13 | "//aos:once", |
| 14 | "//aos/common:mutex", |
| 15 | "//aos/common/logging", |
| 16 | "//aos/common/network:team_number", |
| 17 | "//frc971:constants", |
| 18 | "//frc971:shifter_hall_effect", |
| 19 | "//frc971/control_loops:state_feedback_loop", |
| 20 | "//y2016/control_loops/drivetrain:polydrivetrain_plants", |
| 21 | ], |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 22 | ) |
| 23 | |
| 24 | cc_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 25 | name = "joystick_reader", |
| 26 | srcs = [ |
| 27 | "joystick_reader.cc", |
| 28 | ], |
| 29 | deps = [ |
| 30 | ":constants", |
| 31 | "//aos/common:time", |
| 32 | "//aos/common/actions:action_lib", |
| 33 | "//aos/common/logging", |
| 34 | "//aos/common/util:log_interval", |
| 35 | "//aos/input:joystick_input", |
| 36 | "//aos/linux_code:init", |
| 37 | "//frc971/autonomous:auto_queue", |
| 38 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 39 | "//frc971/queues:gyro", |
| 40 | "//y2016/actors:autonomous_action_lib", |
| 41 | "//y2016/actors:superstructure_action_lib", |
| 42 | "//y2016/actors:vision_align_action_lib", |
| 43 | "//y2016/control_loops/shooter:shooter_queue", |
| 44 | "//y2016/control_loops/superstructure:superstructure_lib", |
| 45 | "//y2016/control_loops/superstructure:superstructure_queue", |
| 46 | "//y2016/queues:ball_detector", |
| 47 | ], |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 48 | ) |
| 49 | |
| 50 | aos_downloader( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 51 | name = "download", |
| 52 | srcs = [ |
| 53 | "//aos:prime_binaries", |
| 54 | ], |
| 55 | dirs = [ |
| 56 | "//y2016/dashboard:www_files", |
| 57 | ], |
| 58 | restricted_to = ["//tools:roborio"], |
| 59 | start_srcs = [ |
| 60 | ":joystick_reader", |
| 61 | ":wpilib_interface", |
| 62 | "//aos:prime_start_binaries", |
| 63 | "//y2016/control_loops/drivetrain:drivetrain", |
| 64 | "//y2016/control_loops/superstructure:superstructure", |
| 65 | "//y2016/control_loops/shooter:shooter", |
| 66 | "//y2016/dashboard:dashboard", |
| 67 | "//y2016/actors:autonomous_action", |
| 68 | "//y2016/actors:superstructure_action", |
| 69 | "//y2016/actors:vision_align_action", |
| 70 | "//y2016/vision:target_receiver", |
| 71 | ], |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 72 | ) |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 73 | |
| 74 | aos_downloader( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 75 | name = "download_stripped", |
| 76 | srcs = [ |
| 77 | "//aos:prime_binaries_stripped", |
| 78 | ], |
| 79 | dirs = [ |
| 80 | "//y2016/dashboard:www_files", |
| 81 | ], |
| 82 | restricted_to = ["//tools:roborio"], |
| 83 | start_srcs = [ |
| 84 | ":joystick_reader.stripped", |
| 85 | ":wpilib_interface.stripped", |
| 86 | "//aos:prime_start_binaries_stripped", |
| 87 | "//y2016/control_loops/drivetrain:drivetrain.stripped", |
| 88 | "//y2016/control_loops/superstructure:superstructure.stripped", |
| 89 | "//y2016/control_loops/shooter:shooter.stripped", |
| 90 | "//y2016/dashboard:dashboard.stripped", |
| 91 | "//y2016/actors:autonomous_action.stripped", |
| 92 | "//y2016/actors:superstructure_action.stripped", |
| 93 | "//y2016/actors:vision_align_action.stripped", |
| 94 | "//y2016/vision:target_receiver.stripped", |
| 95 | ], |
Austin Schuh | c80dd15 | 2016-02-29 01:47:44 -0800 | [diff] [blame] | 96 | ) |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 97 | |
| 98 | cc_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 99 | name = "wpilib_interface", |
| 100 | srcs = [ |
| 101 | "wpilib_interface.cc", |
| 102 | ], |
| 103 | restricted_to = ["//tools:roborio"], |
| 104 | deps = [ |
| 105 | ":constants", |
| 106 | "//aos/common:math", |
| 107 | "//aos/common:stl_mutex", |
| 108 | "//aos/common:time", |
| 109 | "//aos/common/controls:control_loop", |
| 110 | "//aos/common/logging", |
| 111 | "//aos/common/logging:queue_logging", |
| 112 | "//aos/common/messages:robot_state", |
| 113 | "//aos/common/util:log_interval", |
| 114 | "//aos/common/util:phased_loop", |
| 115 | "//aos/common/util:wrapping_counter", |
| 116 | "//aos/linux_code:init", |
| 117 | "//frc971/autonomous:auto_queue", |
| 118 | "//frc971/control_loops:queues", |
| 119 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 120 | "//frc971/wpilib:ADIS16448", |
| 121 | "//frc971/wpilib:buffered_pcm", |
| 122 | "//frc971/wpilib:dma", |
| 123 | "//frc971/wpilib:dma_edge_counting", |
| 124 | "//frc971/wpilib:encoder_and_potentiometer", |
| 125 | "//frc971/wpilib:gyro_sender", |
| 126 | "//frc971/wpilib:interrupt_edge_counting", |
| 127 | "//frc971/wpilib:joystick_sender", |
| 128 | "//frc971/wpilib:logging_queue", |
| 129 | "//frc971/wpilib:loop_output_handler", |
| 130 | "//frc971/wpilib:pdp_fetcher", |
| 131 | "//frc971/wpilib:wpilib_interface", |
| 132 | "//frc971/wpilib:wpilib_robot_base", |
| 133 | "//third_party:wpilib", |
| 134 | "//y2016/control_loops/drivetrain:polydrivetrain_plants", |
| 135 | "//y2016/control_loops/shooter:shooter_queue", |
| 136 | "//y2016/control_loops/superstructure:superstructure_queue", |
| 137 | "//y2016/queues:ball_detector", |
| 138 | ], |
| 139 | ) |
| 140 | |
| 141 | py_library( |
| 142 | name = "python_init", |
| 143 | srcs = ["__init__.py"], |
| 144 | visibility = ["//visibility:public"], |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 145 | ) |