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