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