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