Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 1 | load("//aos/downloader:downloader.bzl", "aos_downloader") |
Brian Silverman | 37281fc | 2018-03-11 18:42:17 -0700 | [diff] [blame] | 2 | load("//aos/build:queues.bzl", "queue_library") |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 3 | load("//tools/build_rules:protobuf.bzl", "proto_cc_library") |
Neil Balch | acfca5b | 2018-01-28 14:04:08 -0800 | [diff] [blame] | 4 | |
| 5 | aos_downloader( |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 6 | name = "download", |
| 7 | srcs = [ |
| 8 | "//aos:prime_binaries", |
| 9 | ], |
| 10 | restricted_to = ["//tools:roborio"], |
| 11 | start_srcs = [ |
| 12 | ":joystick_reader", |
| 13 | ":wpilib_interface", |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 14 | "//y2018/vision:vision_status", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 15 | "//aos:prime_start_binaries", |
| 16 | "//y2018/control_loops/drivetrain:drivetrain", |
Austin Schuh | a3c148e | 2018-03-09 21:04:05 -0800 | [diff] [blame] | 17 | "//y2018/actors:autonomous_action", |
| 18 | "//y2018/control_loops/superstructure:superstructure", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 19 | ], |
Neil Balch | acfca5b | 2018-01-28 14:04:08 -0800 | [diff] [blame] | 20 | ) |
| 21 | |
| 22 | aos_downloader( |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 23 | name = "download_stripped", |
| 24 | srcs = [ |
| 25 | "//aos:prime_binaries_stripped", |
| 26 | ], |
| 27 | restricted_to = ["//tools:roborio"], |
| 28 | start_srcs = [ |
| 29 | ":joystick_reader.stripped", |
| 30 | ":wpilib_interface.stripped", |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 31 | "//y2018/vision:vision_status.stripped", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 32 | "//aos:prime_start_binaries_stripped", |
Austin Schuh | a3c148e | 2018-03-09 21:04:05 -0800 | [diff] [blame] | 33 | "//y2018/actors:autonomous_action.stripped", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 34 | "//y2018/control_loops/drivetrain:drivetrain.stripped", |
Austin Schuh | 6829f76 | 2018-03-02 21:36:01 -0800 | [diff] [blame] | 35 | "//y2018/control_loops/superstructure:superstructure.stripped", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 36 | ], |
Neil Balch | acfca5b | 2018-01-28 14:04:08 -0800 | [diff] [blame] | 37 | ) |
| 38 | |
| 39 | cc_binary( |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 40 | name = "joystick_reader", |
| 41 | srcs = [ |
| 42 | "joystick_reader.cc", |
| 43 | ], |
| 44 | deps = [ |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 45 | ":vision_proto", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 46 | "//aos/stl_mutex:stl_mutex", |
| 47 | "//aos/time:time", |
| 48 | "//aos/actions:action_lib", |
| 49 | "//aos/logging", |
| 50 | "//aos/network:team_number", |
| 51 | "//aos/util:log_interval", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 52 | "//aos/input:drivetrain_input", |
| 53 | "//aos/input:joystick_input", |
| 54 | "//aos/linux_code:init", |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 55 | "//aos/vision/events:udp", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 56 | "//frc971/autonomous:auto_queue", |
Austin Schuh | a3c148e | 2018-03-09 21:04:05 -0800 | [diff] [blame] | 57 | "//frc971/autonomous:base_autonomous_actor", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 58 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 59 | "//y2018/control_loops/drivetrain:drivetrain_base", |
| 60 | "//y2018/control_loops/superstructure:superstructure_queue", |
Austin Schuh | ab15c4d | 2018-03-09 21:21:03 -0800 | [diff] [blame] | 61 | "//y2018/control_loops/superstructure/arm:generated_graph", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 62 | ], |
| 63 | ) |
| 64 | |
| 65 | cc_library( |
| 66 | name = "constants", |
| 67 | srcs = [ |
| 68 | "constants.cc", |
| 69 | ], |
| 70 | hdrs = [ |
| 71 | "constants.h", |
| 72 | ], |
| 73 | visibility = ["//visibility:public"], |
| 74 | deps = [ |
| 75 | "//aos:once", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 76 | "//aos/mutex:mutex", |
| 77 | "//aos/logging", |
| 78 | "//aos/network:team_number", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 79 | "//frc971:constants", |
| 80 | "//frc971/shooter_interpolation:interpolation", |
| 81 | "//y2018/control_loops/drivetrain:polydrivetrain_plants", |
| 82 | "//y2018/control_loops/superstructure/arm:dynamics", |
| 83 | "//y2018/control_loops/superstructure/intake:intake_plants", |
| 84 | ], |
| 85 | ) |
| 86 | |
| 87 | cc_binary( |
| 88 | name = "wpilib_interface", |
| 89 | srcs = [ |
| 90 | "wpilib_interface.cc", |
| 91 | ], |
| 92 | restricted_to = ["//tools:roborio"], |
| 93 | deps = [ |
Brian Silverman | 37281fc | 2018-03-11 18:42:17 -0700 | [diff] [blame] | 94 | ":status_light", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 95 | "//aos:math", |
| 96 | "//aos/stl_mutex:stl_mutex", |
| 97 | "//aos/time:time", |
| 98 | "//aos/controls:control_loop", |
| 99 | "//aos/logging", |
| 100 | "//aos/logging:queue_logging", |
| 101 | "//aos/robot_state:robot_state", |
| 102 | "//aos/util:log_interval", |
| 103 | "//aos/util:phased_loop", |
| 104 | "//aos/util:wrapping_counter", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 105 | "//aos/linux_code:init", |
| 106 | "//frc971/autonomous:auto_queue", |
| 107 | "//frc971/control_loops:queues", |
| 108 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 109 | "//frc971/wpilib:ADIS16448", |
| 110 | "//frc971/wpilib:buffered_pcm", |
| 111 | "//frc971/wpilib:dma", |
| 112 | "//frc971/wpilib:dma_edge_counting", |
| 113 | "//frc971/wpilib:encoder_and_potentiometer", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 114 | "//frc971/wpilib:interrupt_edge_counting", |
| 115 | "//frc971/wpilib:joystick_sender", |
| 116 | "//frc971/wpilib:logging_queue", |
| 117 | "//frc971/wpilib:loop_output_handler", |
| 118 | "//frc971/wpilib:pdp_fetcher", |
| 119 | "//frc971/wpilib:wpilib_interface", |
| 120 | "//frc971/wpilib:wpilib_robot_base", |
| 121 | "//third_party:wpilib", |
Brian Silverman | 37281fc | 2018-03-11 18:42:17 -0700 | [diff] [blame] | 122 | "//third_party/Phoenix-frc-lib:phoenix", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 123 | "//y2018:constants", |
| 124 | "//y2018/control_loops/superstructure:superstructure_queue", |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 125 | "//y2018/vision:vision_queue", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 126 | ], |
Neil Balch | acfca5b | 2018-01-28 14:04:08 -0800 | [diff] [blame] | 127 | ) |
Brian Silverman | 37281fc | 2018-03-11 18:42:17 -0700 | [diff] [blame] | 128 | |
| 129 | queue_library( |
| 130 | name = "status_light", |
| 131 | srcs = [ |
| 132 | "status_light.q", |
| 133 | ], |
Austin Schuh | 8d5fff4 | 2018-05-30 20:44:12 -0700 | [diff] [blame] | 134 | visibility = ["//visibility:public"], |
| 135 | ) |
| 136 | |
| 137 | proto_cc_library( |
| 138 | name = "vision_proto", |
| 139 | src = "vision.proto", |
| 140 | visibility = ["//visibility:public"], |
Brian Silverman | 37281fc | 2018-03-11 18:42:17 -0700 | [diff] [blame] | 141 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 142 | |
| 143 | py_library( |
| 144 | name = "python_init", |
| 145 | srcs = ["__init__.py"], |
| 146 | visibility = ["//visibility:public"], |
| 147 | ) |