Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 1 | load("//aos/downloader:downloader.bzl", "aos_downloader") |
Neil Balch | acfca5b | 2018-01-28 14:04:08 -0800 | [diff] [blame] | 2 | |
| 3 | aos_downloader( |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 4 | name = "download", |
| 5 | srcs = [ |
| 6 | "//aos:prime_binaries", |
| 7 | ], |
| 8 | restricted_to = ["//tools:roborio"], |
| 9 | start_srcs = [ |
| 10 | ":joystick_reader", |
| 11 | ":wpilib_interface", |
| 12 | "//aos:prime_start_binaries", |
| 13 | "//y2018/control_loops/drivetrain:drivetrain", |
Austin Schuh | 6829f76 | 2018-03-02 21:36:01 -0800 | [diff] [blame] | 14 | "//y2018/control_loops/superstructure:superstructure.stripped", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 15 | ], |
Neil Balch | acfca5b | 2018-01-28 14:04:08 -0800 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | aos_downloader( |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 19 | name = "download_stripped", |
| 20 | srcs = [ |
| 21 | "//aos:prime_binaries_stripped", |
| 22 | ], |
| 23 | restricted_to = ["//tools:roborio"], |
| 24 | start_srcs = [ |
| 25 | ":joystick_reader.stripped", |
| 26 | ":wpilib_interface.stripped", |
| 27 | "//aos:prime_start_binaries_stripped", |
| 28 | "//y2018/control_loops/drivetrain:drivetrain.stripped", |
Austin Schuh | 6829f76 | 2018-03-02 21:36:01 -0800 | [diff] [blame] | 29 | "//y2018/control_loops/superstructure:superstructure.stripped", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 30 | ], |
Neil Balch | acfca5b | 2018-01-28 14:04:08 -0800 | [diff] [blame] | 31 | ) |
| 32 | |
| 33 | cc_binary( |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 34 | name = "joystick_reader", |
| 35 | srcs = [ |
| 36 | "joystick_reader.cc", |
| 37 | ], |
| 38 | deps = [ |
| 39 | "//aos/common:time", |
| 40 | "//aos/common/actions:action_lib", |
| 41 | "//aos/common/logging", |
| 42 | "//aos/common/util:log_interval", |
| 43 | "//aos/input:drivetrain_input", |
| 44 | "//aos/input:joystick_input", |
| 45 | "//aos/linux_code:init", |
| 46 | "//frc971/autonomous:auto_queue", |
| 47 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 48 | "//y2018/control_loops/drivetrain:drivetrain_base", |
| 49 | "//y2018/control_loops/superstructure:superstructure_queue", |
Austin Schuh | ab15c4d | 2018-03-09 21:21:03 -0800 | [diff] [blame^] | 50 | "//y2018/control_loops/superstructure/arm:generated_graph", |
Austin Schuh | 2a3e063 | 2018-02-19 16:24:49 -0800 | [diff] [blame] | 51 | ], |
| 52 | ) |
| 53 | |
| 54 | cc_library( |
| 55 | name = "constants", |
| 56 | srcs = [ |
| 57 | "constants.cc", |
| 58 | ], |
| 59 | hdrs = [ |
| 60 | "constants.h", |
| 61 | ], |
| 62 | visibility = ["//visibility:public"], |
| 63 | deps = [ |
| 64 | "//aos:once", |
| 65 | "//aos/common:mutex", |
| 66 | "//aos/common/logging", |
| 67 | "//aos/common/network:team_number", |
| 68 | "//frc971:constants", |
| 69 | "//frc971/shooter_interpolation:interpolation", |
| 70 | "//y2018/control_loops/drivetrain:polydrivetrain_plants", |
| 71 | "//y2018/control_loops/superstructure/arm:dynamics", |
| 72 | "//y2018/control_loops/superstructure/intake:intake_plants", |
| 73 | ], |
| 74 | ) |
| 75 | |
| 76 | cc_binary( |
| 77 | name = "wpilib_interface", |
| 78 | srcs = [ |
| 79 | "wpilib_interface.cc", |
| 80 | ], |
| 81 | restricted_to = ["//tools:roborio"], |
| 82 | deps = [ |
| 83 | "//aos/common:math", |
| 84 | "//aos/common:stl_mutex", |
| 85 | "//aos/common:time", |
| 86 | "//aos/common/controls:control_loop", |
| 87 | "//aos/common/logging", |
| 88 | "//aos/common/logging:queue_logging", |
| 89 | "//aos/common/messages:robot_state", |
| 90 | "//aos/common/util:log_interval", |
| 91 | "//aos/common/util:phased_loop", |
| 92 | "//aos/common/util:wrapping_counter", |
| 93 | "//aos/linux_code:init", |
| 94 | "//frc971/autonomous:auto_queue", |
| 95 | "//frc971/control_loops:queues", |
| 96 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 97 | "//frc971/wpilib:ADIS16448", |
| 98 | "//frc971/wpilib:buffered_pcm", |
| 99 | "//frc971/wpilib:dma", |
| 100 | "//frc971/wpilib:dma_edge_counting", |
| 101 | "//frc971/wpilib:encoder_and_potentiometer", |
| 102 | "//frc971/wpilib:gyro_sender", |
| 103 | "//frc971/wpilib:interrupt_edge_counting", |
| 104 | "//frc971/wpilib:joystick_sender", |
| 105 | "//frc971/wpilib:logging_queue", |
| 106 | "//frc971/wpilib:loop_output_handler", |
| 107 | "//frc971/wpilib:pdp_fetcher", |
| 108 | "//frc971/wpilib:wpilib_interface", |
| 109 | "//frc971/wpilib:wpilib_robot_base", |
| 110 | "//third_party:wpilib", |
| 111 | "//y2018:constants", |
| 112 | "//y2018/control_loops/superstructure:superstructure_queue", |
| 113 | ], |
Neil Balch | acfca5b | 2018-01-28 14:04:08 -0800 | [diff] [blame] | 114 | ) |