Brian Silverman | 003a473 | 2018-03-11 14:02:15 -0700 | [diff] [blame] | 1 | load("//aos/downloader:downloader.bzl", "aos_downloader") |
Sabina Davis | 5ae0c7c | 2017-10-21 20:51:55 -0700 | [diff] [blame] | 2 | |
| 3 | cc_binary( |
Brian Silverman | 003a473 | 2018-03-11 14:02:15 -0700 | [diff] [blame] | 4 | name = "joystick_reader", |
| 5 | srcs = [ |
| 6 | "joystick_reader.cc", |
| 7 | ], |
| 8 | deps = [ |
| 9 | "//aos/common:time", |
| 10 | "//aos/common/actions:action_lib", |
| 11 | "//aos/common/logging", |
| 12 | "//aos/common/util:log_interval", |
| 13 | "//aos/input:drivetrain_input", |
| 14 | "//aos/input:joystick_input", |
| 15 | "//aos/linux_code:init", |
| 16 | "//frc971/autonomous:auto_queue", |
| 17 | "//frc971/autonomous:base_autonomous_actor", |
| 18 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 19 | "//y2017_bot3/control_loops/drivetrain:drivetrain_base", |
| 20 | "//y2017_bot3/control_loops/superstructure:superstructure_lib", |
| 21 | "//y2017_bot3/control_loops/superstructure:superstructure_queue", |
| 22 | ], |
Sabina Davis | ff3e51d | 2017-10-26 21:40:22 -0700 | [diff] [blame] | 23 | ) |
| 24 | |
| 25 | cc_binary( |
Brian Silverman | 003a473 | 2018-03-11 14:02:15 -0700 | [diff] [blame] | 26 | name = "wpilib_interface", |
| 27 | srcs = [ |
| 28 | "wpilib_interface.cc", |
| 29 | ], |
| 30 | restricted_to = ["//tools:roborio"], |
| 31 | deps = [ |
| 32 | "//aos/common:math", |
| 33 | "//aos/common:stl_mutex", |
| 34 | "//aos/common:time", |
| 35 | "//aos/common/controls:control_loop", |
| 36 | "//aos/common/logging", |
| 37 | "//aos/common/logging:queue_logging", |
| 38 | "//aos/common/messages:robot_state", |
| 39 | "//aos/common/util:log_interval", |
| 40 | "//aos/common/util:phased_loop", |
| 41 | "//aos/linux_code:init", |
| 42 | "//frc971/control_loops:queues", |
| 43 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 44 | "//frc971/wpilib:buffered_pcm", |
| 45 | "//frc971/wpilib:dma", |
| 46 | "//frc971/wpilib:dma_edge_counting", |
| 47 | "//frc971/wpilib:encoder_and_potentiometer", |
| 48 | "//frc971/wpilib:gyro_sender", |
| 49 | "//frc971/wpilib:interrupt_edge_counting", |
| 50 | "//frc971/wpilib:joystick_sender", |
| 51 | "//frc971/wpilib:logging_queue", |
| 52 | "//frc971/wpilib:loop_output_handler", |
| 53 | "//frc971/wpilib:pdp_fetcher", |
| 54 | "//frc971/wpilib:wpilib_interface", |
| 55 | "//frc971/wpilib:wpilib_robot_base", |
| 56 | "//third_party:wpilib", |
| 57 | "//y2017_bot3/control_loops/drivetrain:polydrivetrain_plants", |
| 58 | "//y2017_bot3/control_loops/superstructure:superstructure_queue", |
| 59 | ], |
Sabina Davis | 5ae0c7c | 2017-10-21 20:51:55 -0700 | [diff] [blame] | 60 | ) |
| 61 | |
| 62 | aos_downloader( |
Brian Silverman | 003a473 | 2018-03-11 14:02:15 -0700 | [diff] [blame] | 63 | name = "download", |
| 64 | srcs = [ |
| 65 | "//aos:prime_binaries", |
| 66 | ], |
| 67 | restricted_to = ["//tools:roborio"], |
| 68 | start_srcs = [ |
| 69 | ":wpilib_interface", |
| 70 | ":joystick_reader", |
| 71 | "//aos:prime_start_binaries", |
| 72 | "//y2017_bot3/control_loops/drivetrain:drivetrain", |
| 73 | "//y2017_bot3/control_loops/superstructure:superstructure", |
| 74 | ], |
Sabina Davis | 5ae0c7c | 2017-10-21 20:51:55 -0700 | [diff] [blame] | 75 | ) |
| 76 | |
| 77 | aos_downloader( |
Brian Silverman | 003a473 | 2018-03-11 14:02:15 -0700 | [diff] [blame] | 78 | name = "download_stripped", |
| 79 | srcs = [ |
| 80 | "//aos:prime_binaries_stripped", |
| 81 | ], |
| 82 | restricted_to = ["//tools:roborio"], |
| 83 | start_srcs = [ |
| 84 | ":wpilib_interface.stripped", |
| 85 | ":joystick_reader.stripped", |
| 86 | "//aos:prime_start_binaries_stripped", |
| 87 | "//y2017_bot3/control_loops/drivetrain:drivetrain.stripped", |
| 88 | "//y2017_bot3/control_loops/superstructure:superstructure.stripped", |
| 89 | ], |
Sabina Davis | 5ae0c7c | 2017-10-21 20:51:55 -0700 | [diff] [blame] | 90 | ) |