Sabina Davis | 1b84afa | 2019-02-09 01:20:21 -0800 | [diff] [blame] | 1 | load("//frc971:downloader.bzl", "robot_downloader") |
Sabina Davis | c632934 | 2019-03-01 20:44:42 -0800 | [diff] [blame] | 2 | load("//aos/build:queues.bzl", "queue_library") |
Michael Schuh | 5a1a758 | 2019-03-01 13:03:47 -0800 | [diff] [blame] | 3 | load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library") |
Sabina Davis | 1b84afa | 2019-02-09 01:20:21 -0800 | [diff] [blame] | 4 | |
| 5 | robot_downloader( |
| 6 | start_binaries = [ |
| 7 | ":joystick_reader", |
| 8 | ":wpilib_interface", |
| 9 | "//y2019/control_loops/drivetrain:drivetrain", |
Austin Schuh | 355f327 | 2019-02-15 23:09:29 -0800 | [diff] [blame] | 10 | "//y2019/control_loops/superstructure:superstructure", |
Austin Schuh | 986091a | 2019-03-22 20:35:12 -0700 | [diff] [blame] | 11 | "//y2019/actors:binaries", |
Sabina Davis | 1b84afa | 2019-02-09 01:20:21 -0800 | [diff] [blame] | 12 | ], |
| 13 | ) |
| 14 | |
Tyler Chatow | 37ecdcd | 2019-01-26 20:18:42 -0800 | [diff] [blame] | 15 | cc_library( |
| 16 | name = "constants", |
| 17 | srcs = [ |
| 18 | "constants.cc", |
| 19 | ], |
| 20 | hdrs = [ |
| 21 | "constants.h", |
| 22 | ], |
| 23 | visibility = ["//visibility:public"], |
| 24 | deps = [ |
| 25 | "//aos:once", |
| 26 | "//aos/logging", |
| 27 | "//aos/mutex", |
| 28 | "//aos/network:team_number", |
| 29 | "//frc971:constants", |
James Kuszmaul | 22c5ab3 | 2019-02-09 14:45:58 -0800 | [diff] [blame] | 30 | "//frc971/control_loops:pose", |
Theo Bafrali | 00e4227 | 2019-02-12 01:07:46 -0800 | [diff] [blame] | 31 | "//frc971/control_loops:static_zeroing_single_dof_profiled_subsystem", |
James Kuszmaul | 22c5ab3 | 2019-02-09 14:45:58 -0800 | [diff] [blame] | 32 | "//y2019/control_loops/drivetrain:camera", |
Sabina Davis | 7be49f3 | 2019-02-02 00:30:19 -0800 | [diff] [blame] | 33 | "//y2019/control_loops/drivetrain:polydrivetrain_plants", |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 34 | "//y2019/control_loops/superstructure/elevator:elevator_plants", |
| 35 | "//y2019/control_loops/superstructure/intake:intake_plants", |
| 36 | "//y2019/control_loops/superstructure/stilts:stilts_plants", |
Austin Schuh | c1d6f83 | 2019-02-15 23:22:17 -0800 | [diff] [blame] | 37 | "//y2019/control_loops/superstructure/wrist:wrist_plants", |
James Kuszmaul | e2c71ea | 2019-03-04 08:14:21 -0800 | [diff] [blame] | 38 | "//y2019/vision:constants", |
Tyler Chatow | 37ecdcd | 2019-01-26 20:18:42 -0800 | [diff] [blame] | 39 | ], |
| 40 | ) |
| 41 | |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 42 | cc_binary( |
| 43 | name = "wpilib_interface", |
| 44 | srcs = [ |
| 45 | "wpilib_interface.cc", |
| 46 | ], |
| 47 | restricted_to = ["//tools:roborio"], |
| 48 | deps = [ |
Sabina Davis | 7be49f3 | 2019-02-02 00:30:19 -0800 | [diff] [blame] | 49 | ":constants", |
Sabina Davis | c632934 | 2019-03-01 20:44:42 -0800 | [diff] [blame] | 50 | ":status_light", |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 51 | "//aos:init", |
| 52 | "//aos:make_unique", |
| 53 | "//aos:math", |
| 54 | "//aos/controls:control_loop", |
| 55 | "//aos/logging", |
| 56 | "//aos/logging:queue_logging", |
| 57 | "//aos/robot_state", |
| 58 | "//aos/stl_mutex", |
| 59 | "//aos/time", |
| 60 | "//aos/util:log_interval", |
| 61 | "//aos/util:phased_loop", |
| 62 | "//aos/util:wrapping_counter", |
| 63 | "//frc971/autonomous:auto_queue", |
| 64 | "//frc971/control_loops:queues", |
| 65 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 66 | "//frc971/wpilib:ADIS16448", |
Austin Schuh | c1d6f83 | 2019-02-15 23:22:17 -0800 | [diff] [blame] | 67 | "//frc971/wpilib:buffered_pcm", |
Sabina Davis | d004fd6 | 2019-02-02 23:51:46 -0800 | [diff] [blame] | 68 | "//frc971/wpilib:drivetrain_writer", |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 69 | "//frc971/wpilib:encoder_and_potentiometer", |
| 70 | "//frc971/wpilib:interrupt_edge_counting", |
| 71 | "//frc971/wpilib:joystick_sender", |
| 72 | "//frc971/wpilib:logging_queue", |
| 73 | "//frc971/wpilib:loop_output_handler", |
| 74 | "//frc971/wpilib:pdp_fetcher", |
Sabina Davis | adc5854 | 2019-02-01 22:23:00 -0800 | [diff] [blame] | 75 | "//frc971/wpilib:sensor_reader", |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 76 | "//frc971/wpilib:wpilib_interface", |
| 77 | "//frc971/wpilib:wpilib_robot_base", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 78 | "//third_party:phoenix", |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 79 | "//third_party:wpilib", |
Brian Silverman | c41fb86 | 2019-03-02 21:14:46 -0800 | [diff] [blame] | 80 | "//y2019/control_loops/drivetrain:camera_queue", |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 81 | "//y2019/control_loops/superstructure:superstructure_queue", |
Brian Silverman | f8b7525 | 2019-02-24 16:13:58 -0800 | [diff] [blame] | 82 | "//y2019/jevois:spi", |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 83 | ], |
| 84 | ) |
Sabina Davis | 1b84afa | 2019-02-09 01:20:21 -0800 | [diff] [blame] | 85 | |
Tyler Chatow | d28951f | 2019-02-16 20:12:28 -0800 | [diff] [blame] | 86 | cc_library( |
| 87 | name = "joystick_angle", |
| 88 | srcs = [ |
| 89 | "joystick_angle.cc", |
| 90 | ], |
| 91 | hdrs = [ |
| 92 | "joystick_angle.h", |
| 93 | ], |
| 94 | deps = [ |
| 95 | "//aos/input:drivetrain_input", |
Tyler Chatow | c8012ca | 2019-02-18 22:33:01 -0800 | [diff] [blame] | 96 | "//frc971/zeroing:wrap", |
Tyler Chatow | d28951f | 2019-02-16 20:12:28 -0800 | [diff] [blame] | 97 | ], |
| 98 | ) |
| 99 | |
| 100 | cc_test( |
| 101 | name = "joystick_angle_test", |
| 102 | srcs = [ |
| 103 | "joystick_angle_test.cc", |
| 104 | ], |
| 105 | deps = [ |
| 106 | ":joystick_angle", |
| 107 | "//aos/testing:googletest", |
| 108 | ], |
| 109 | ) |
| 110 | |
Sabina Davis | 1b84afa | 2019-02-09 01:20:21 -0800 | [diff] [blame] | 111 | cc_binary( |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 112 | name = "joystick_reader", |
| 113 | srcs = [ |
| 114 | ":joystick_reader.cc", |
| 115 | ], |
| 116 | deps = [ |
Sabina Davis | c632934 | 2019-03-01 20:44:42 -0800 | [diff] [blame] | 117 | ":status_light", |
Tyler Chatow | e024145 | 2019-03-08 21:07:50 -0800 | [diff] [blame] | 118 | ":vision_proto", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 119 | "//aos:init", |
| 120 | "//aos/actions:action_lib", |
Sabina Davis | 1b84afa | 2019-02-09 01:20:21 -0800 | [diff] [blame] | 121 | "//aos/input:action_joystick_input", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 122 | "//aos/input:drivetrain_input", |
| 123 | "//aos/input:joystick_input", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 124 | "//aos/logging", |
| 125 | "//aos/network:team_number", |
| 126 | "//aos/stl_mutex", |
| 127 | "//aos/time", |
| 128 | "//aos/util:log_interval", |
| 129 | "//aos/vision/events:udp", |
| 130 | "//frc971/autonomous:auto_queue", |
| 131 | "//frc971/autonomous:base_autonomous_actor", |
| 132 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
James Kuszmaul | d8deb68 | 2019-03-10 10:38:42 -0700 | [diff] [blame] | 133 | "//frc971/control_loops/drivetrain:localizer_queue", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 134 | "//y2019/control_loops/drivetrain:drivetrain_base", |
| 135 | "//y2019/control_loops/superstructure:superstructure_queue", |
Tyler Chatow | e024145 | 2019-03-08 21:07:50 -0800 | [diff] [blame] | 136 | "@com_google_protobuf//:protobuf", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 137 | ], |
| 138 | ) |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 139 | |
Sabina Davis | c632934 | 2019-03-01 20:44:42 -0800 | [diff] [blame] | 140 | queue_library( |
| 141 | name = "status_light", |
| 142 | srcs = [ |
| 143 | "status_light.q", |
| 144 | ], |
| 145 | visibility = ["//visibility:public"], |
| 146 | ) |
| 147 | |
Michael Schuh | 5a1a758 | 2019-03-01 13:03:47 -0800 | [diff] [blame] | 148 | cc_proto_library( |
| 149 | name = "vision_proto", |
| 150 | srcs = ["vision.proto"], |
| 151 | visibility = ["//visibility:public"], |
| 152 | ) |
| 153 | |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 154 | py_library( |
| 155 | name = "python_init", |
| 156 | srcs = ["__init__.py"], |
| 157 | visibility = ["//visibility:public"], |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 158 | ) |