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