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