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