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", |
| 8 | ], |
| 9 | ) |
| 10 | |
Tyler Chatow | 37ecdcd | 2019-01-26 20:18:42 -0800 | [diff] [blame] | 11 | cc_library( |
| 12 | name = "constants", |
| 13 | srcs = [ |
| 14 | "constants.cc", |
| 15 | ], |
| 16 | hdrs = [ |
| 17 | "constants.h", |
| 18 | ], |
| 19 | visibility = ["//visibility:public"], |
| 20 | deps = [ |
| 21 | "//aos:once", |
| 22 | "//aos/logging", |
| 23 | "//aos/mutex", |
| 24 | "//aos/network:team_number", |
| 25 | "//frc971:constants", |
Sabina Davis | 7be49f3 | 2019-02-02 00:30:19 -0800 | [diff] [blame] | 26 | "//y2019/control_loops/drivetrain:polydrivetrain_plants", |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 27 | "//y2019/control_loops/superstructure/elevator:elevator_plants", |
| 28 | "//y2019/control_loops/superstructure/intake:intake_plants", |
| 29 | "//y2019/control_loops/superstructure/stilts:stilts_plants", |
| 30 | "//y2019/control_loops/superstructure/wrist:wrist_plants", |
Tyler Chatow | 37ecdcd | 2019-01-26 20:18:42 -0800 | [diff] [blame] | 31 | ], |
| 32 | ) |
| 33 | |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 34 | cc_binary( |
| 35 | name = "wpilib_interface", |
| 36 | srcs = [ |
| 37 | "wpilib_interface.cc", |
| 38 | ], |
| 39 | restricted_to = ["//tools:roborio"], |
| 40 | deps = [ |
Sabina Davis | 7be49f3 | 2019-02-02 00:30:19 -0800 | [diff] [blame] | 41 | ":constants", |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 42 | "//aos:init", |
| 43 | "//aos:make_unique", |
| 44 | "//aos:math", |
| 45 | "//aos/controls:control_loop", |
| 46 | "//aos/logging", |
| 47 | "//aos/logging:queue_logging", |
| 48 | "//aos/robot_state", |
| 49 | "//aos/stl_mutex", |
| 50 | "//aos/time", |
| 51 | "//aos/util:log_interval", |
| 52 | "//aos/util:phased_loop", |
| 53 | "//aos/util:wrapping_counter", |
| 54 | "//frc971/autonomous:auto_queue", |
| 55 | "//frc971/control_loops:queues", |
| 56 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 57 | "//frc971/wpilib:ADIS16448", |
Sabina Davis | d004fd6 | 2019-02-02 23:51:46 -0800 | [diff] [blame] | 58 | "//frc971/wpilib:drivetrain_writer", |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 59 | "//frc971/wpilib:encoder_and_potentiometer", |
| 60 | "//frc971/wpilib:interrupt_edge_counting", |
| 61 | "//frc971/wpilib:joystick_sender", |
| 62 | "//frc971/wpilib:logging_queue", |
| 63 | "//frc971/wpilib:loop_output_handler", |
| 64 | "//frc971/wpilib:pdp_fetcher", |
Sabina Davis | adc5854 | 2019-02-01 22:23:00 -0800 | [diff] [blame] | 65 | "//frc971/wpilib:sensor_reader", |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 66 | "//frc971/wpilib:wpilib_interface", |
| 67 | "//frc971/wpilib:wpilib_robot_base", |
| 68 | "//third_party:wpilib", |
| 69 | "//third_party/Phoenix-frc-lib:phoenix", |
Alex Perry | 5fb5ff2 | 2019-02-09 21:53:17 -0800 | [diff] [blame] | 70 | "//y2019/control_loops/superstructure:superstructure_queue", |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 71 | ], |
| 72 | ) |
Sabina Davis | 1b84afa | 2019-02-09 01:20:21 -0800 | [diff] [blame] | 73 | |
| 74 | cc_binary( |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 75 | name = "joystick_reader", |
| 76 | srcs = [ |
| 77 | ":joystick_reader.cc", |
| 78 | ], |
| 79 | deps = [ |
| 80 | "//aos:init", |
| 81 | "//aos/actions:action_lib", |
Sabina Davis | 1b84afa | 2019-02-09 01:20:21 -0800 | [diff] [blame] | 82 | "//aos/input:action_joystick_input", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 83 | "//aos/input:drivetrain_input", |
| 84 | "//aos/input:joystick_input", |
Sabina Davis | 91b2360 | 2019-01-21 00:06:01 -0800 | [diff] [blame] | 85 | "//aos/logging", |
| 86 | "//aos/network:team_number", |
| 87 | "//aos/stl_mutex", |
| 88 | "//aos/time", |
| 89 | "//aos/util:log_interval", |
| 90 | "//aos/vision/events:udp", |
| 91 | "//frc971/autonomous:auto_queue", |
| 92 | "//frc971/autonomous:base_autonomous_actor", |
| 93 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 94 | "//y2019/control_loops/drivetrain:drivetrain_base", |
| 95 | "//y2019/control_loops/superstructure:superstructure_queue", |
| 96 | ], |
| 97 | ) |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 98 | |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 99 | py_library( |
| 100 | name = "python_init", |
| 101 | srcs = ["__init__.py"], |
| 102 | visibility = ["//visibility:public"], |
Sabina Davis | abeae33 | 2019-02-01 21:12:57 -0800 | [diff] [blame] | 103 | ) |