Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 1 | load("//frc971:downloader.bzl", "robot_downloader") |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 2 | |
Tyler Chatow | 6107aba | 2017-01-22 01:39:40 +0000 | [diff] [blame] | 3 | cc_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 4 | name = "constants", |
| 5 | srcs = [ |
| 6 | "constants.cc", |
| 7 | ], |
| 8 | hdrs = [ |
| 9 | "constants.h", |
| 10 | ], |
| 11 | visibility = ["//visibility:public"], |
| 12 | deps = [ |
| 13 | "//aos:once", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 14 | "//aos/logging", |
Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 15 | "//aos/mutex", |
John Park | bb458cd | 2019-11-03 19:18:43 -0800 | [diff] [blame^] | 16 | "@com_google_absl//absl/base", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 17 | "//aos/network:team_number", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 18 | "//frc971:constants", |
| 19 | "//frc971/shooter_interpolation:interpolation", |
| 20 | "//y2017/control_loops/drivetrain:polydrivetrain_plants", |
| 21 | "//y2017/control_loops/superstructure/column:column_plants", |
| 22 | "//y2017/control_loops/superstructure/hood:hood_plants", |
| 23 | "//y2017/control_loops/superstructure/intake:intake_plants", |
| 24 | "//y2017/control_loops/superstructure/shooter:shooter_plants", |
| 25 | ], |
Tyler Chatow | 6107aba | 2017-01-22 01:39:40 +0000 | [diff] [blame] | 26 | ) |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 27 | |
| 28 | cc_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 29 | name = "joystick_reader", |
| 30 | srcs = [ |
| 31 | "joystick_reader.cc", |
| 32 | ], |
| 33 | deps = [ |
| 34 | ":constants", |
Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 35 | "//aos:init", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 36 | "//aos/actions:action_lib", |
Austin Schuh | a250b2d | 2019-05-27 16:14:02 -0700 | [diff] [blame] | 37 | "//aos/input:action_joystick_input", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 38 | "//aos/input:drivetrain_input", |
Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 39 | "//aos/logging", |
| 40 | "//aos/time", |
| 41 | "//aos/util:log_interval", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 42 | "//frc971/autonomous:auto_queue", |
| 43 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 44 | "//y2017/actors:autonomous_action_lib", |
| 45 | "//y2017/control_loops/drivetrain:drivetrain_base", |
| 46 | "//y2017/control_loops/superstructure:superstructure_queue", |
| 47 | ], |
Campbell Crowley | 71b5f13 | 2017-02-18 13:16:08 -0800 | [diff] [blame] | 48 | ) |
| 49 | |
| 50 | cc_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 51 | name = "wpilib_interface", |
| 52 | srcs = [ |
| 53 | "wpilib_interface.cc", |
| 54 | ], |
| 55 | restricted_to = ["//tools:roborio"], |
| 56 | deps = [ |
| 57 | ":constants", |
Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 58 | "//aos:init", |
| 59 | "//aos:make_unique", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 60 | "//aos:math", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 61 | "//aos/controls:control_loop", |
| 62 | "//aos/logging", |
| 63 | "//aos/logging:queue_logging", |
Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 64 | "//aos/robot_state", |
| 65 | "//aos/stl_mutex", |
| 66 | "//aos/time", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 67 | "//aos/util:log_interval", |
| 68 | "//aos/util:phased_loop", |
| 69 | "//aos/util:wrapping_counter", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 70 | "//frc971/autonomous:auto_queue", |
| 71 | "//frc971/control_loops:queues", |
| 72 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 73 | "//frc971/wpilib:ADIS16448", |
| 74 | "//frc971/wpilib:buffered_pcm", |
| 75 | "//frc971/wpilib:dma", |
| 76 | "//frc971/wpilib:dma_edge_counting", |
Sabina Davis | 7af11ad | 2019-02-03 01:16:45 -0800 | [diff] [blame] | 77 | "//frc971/wpilib:drivetrain_writer", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 78 | "//frc971/wpilib:encoder_and_potentiometer", |
| 79 | "//frc971/wpilib:interrupt_edge_counting", |
| 80 | "//frc971/wpilib:joystick_sender", |
| 81 | "//frc971/wpilib:logging_queue", |
| 82 | "//frc971/wpilib:loop_output_handler", |
| 83 | "//frc971/wpilib:pdp_fetcher", |
Austin Schuh | bf29b6f | 2019-02-02 21:45:27 -0800 | [diff] [blame] | 84 | "//frc971/wpilib:sensor_reader", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 85 | "//frc971/wpilib:wpilib_robot_base", |
| 86 | "//third_party:wpilib", |
| 87 | "//y2017/control_loops/superstructure:superstructure_queue", |
| 88 | ], |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 89 | ) |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 90 | |
Lee Mracek | 6821fe0 | 2018-11-01 17:27:30 -0400 | [diff] [blame] | 91 | robot_downloader( |
Brian Silverman | f819b44 | 2019-01-20 16:51:04 -0800 | [diff] [blame] | 92 | start_binaries = [ |
| 93 | ":joystick_reader", |
| 94 | ":wpilib_interface", |
| 95 | "//y2017/control_loops/drivetrain:drivetrain", |
| 96 | "//y2017/control_loops/superstructure:superstructure", |
| 97 | "//y2017/actors:autonomous_action", |
| 98 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 99 | ) |
| 100 | |
| 101 | py_library( |
| 102 | name = "python_init", |
| 103 | srcs = ["__init__.py"], |
| 104 | visibility = ["//visibility:public"], |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 105 | ) |