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