Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 1 | load("//aos/downloader:downloader.bzl", "aos_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", |
| 14 | "//aos/common:mutex", |
| 15 | "//aos/common/logging", |
| 16 | "//aos/common/network:team_number", |
| 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", |
| 34 | "//aos/common:time", |
| 35 | "//aos/common/actions:action_lib", |
| 36 | "//aos/common/logging", |
| 37 | "//aos/common/util:log_interval", |
| 38 | "//aos/input:drivetrain_input", |
| 39 | "//aos/input:joystick_input", |
| 40 | "//aos/linux_code:init", |
| 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", |
| 57 | "//aos/common:math", |
| 58 | "//aos/common:stl_mutex", |
| 59 | "//aos/common:time", |
| 60 | "//aos/common/controls:control_loop", |
| 61 | "//aos/common/logging", |
| 62 | "//aos/common/logging:queue_logging", |
| 63 | "//aos/common/messages:robot_state", |
| 64 | "//aos/common/util:log_interval", |
| 65 | "//aos/common/util:phased_loop", |
| 66 | "//aos/common/util:wrapping_counter", |
| 67 | "//aos/linux_code:init", |
| 68 | "//frc971/autonomous:auto_queue", |
| 69 | "//frc971/control_loops:queues", |
| 70 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 71 | "//frc971/wpilib:ADIS16448", |
| 72 | "//frc971/wpilib:buffered_pcm", |
| 73 | "//frc971/wpilib:dma", |
| 74 | "//frc971/wpilib:dma_edge_counting", |
| 75 | "//frc971/wpilib:encoder_and_potentiometer", |
| 76 | "//frc971/wpilib:interrupt_edge_counting", |
| 77 | "//frc971/wpilib:joystick_sender", |
| 78 | "//frc971/wpilib:logging_queue", |
| 79 | "//frc971/wpilib:loop_output_handler", |
| 80 | "//frc971/wpilib:pdp_fetcher", |
| 81 | "//frc971/wpilib:wpilib_interface", |
| 82 | "//frc971/wpilib:wpilib_robot_base", |
| 83 | "//third_party:wpilib", |
| 84 | "//y2017/control_loops/superstructure:superstructure_queue", |
| 85 | ], |
Brian Silverman | 06016bc | 2017-02-11 16:34:34 -0800 | [diff] [blame] | 86 | ) |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 87 | |
| 88 | aos_downloader( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 89 | name = "download", |
| 90 | srcs = [ |
| 91 | "//aos:prime_binaries", |
| 92 | ], |
| 93 | restricted_to = ["//tools:roborio"], |
| 94 | start_srcs = [ |
| 95 | ":joystick_reader", |
| 96 | ":wpilib_interface", |
| 97 | "//aos:prime_start_binaries", |
| 98 | "//y2017/actors:autonomous_action", |
| 99 | "//y2017/control_loops/drivetrain:drivetrain", |
| 100 | "//y2017/control_loops/superstructure:superstructure", |
| 101 | "//y2017/vision:target_receiver", |
| 102 | ], |
Austin Schuh | 23cc9ed | 2017-02-24 19:14:06 -0800 | [diff] [blame] | 103 | ) |
| 104 | |
| 105 | aos_downloader( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 106 | name = "download_stripped", |
| 107 | srcs = [ |
| 108 | "//aos:prime_binaries_stripped", |
| 109 | ], |
| 110 | restricted_to = ["//tools:roborio"], |
| 111 | start_srcs = [ |
| 112 | ":joystick_reader.stripped", |
| 113 | ":wpilib_interface.stripped", |
| 114 | "//aos:prime_start_binaries_stripped", |
| 115 | "//y2017/actors:autonomous_action.stripped", |
| 116 | "//y2017/control_loops/drivetrain:drivetrain.stripped", |
| 117 | "//y2017/control_loops/superstructure:superstructure.stripped", |
| 118 | "//y2017/vision:target_receiver.stripped", |
| 119 | ], |
| 120 | ) |
| 121 | |
| 122 | py_library( |
| 123 | name = "python_init", |
| 124 | srcs = ["__init__.py"], |
| 125 | visibility = ["//visibility:public"], |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 126 | ) |