blob: e002758de41ece67c39906ace4ae5e51008651bc [file] [log] [blame]
Lee Mracek6821fe02018-11-01 17:27:30 -04001load('//frc971:downloader.bzl', 'robot_downloader')
Austin Schuh7b9a3ba2017-02-19 23:11:45 -08002
Tyler Chatow6107aba2017-01-22 01:39:40 +00003cc_library(
Brian Silverman6470f442018-08-05 12:08:16 -07004 name = "constants",
5 srcs = [
6 "constants.cc",
7 ],
8 hdrs = [
9 "constants.h",
10 ],
11 visibility = ["//visibility:public"],
12 deps = [
13 "//aos:once",
John Park33858a32018-09-28 23:05:48 -070014 "//aos/mutex:mutex",
15 "//aos/logging",
16 "//aos/network:team_number",
Brian Silverman6470f442018-08-05 12:08:16 -070017 "//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 Chatow6107aba2017-01-22 01:39:40 +000025)
Brian Silverman06016bc2017-02-11 16:34:34 -080026
27cc_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070028 name = "joystick_reader",
29 srcs = [
30 "joystick_reader.cc",
31 ],
32 deps = [
33 ":constants",
John Park33858a32018-09-28 23:05:48 -070034 "//aos/time:time",
35 "//aos/actions:action_lib",
36 "//aos/logging",
37 "//aos/util:log_interval",
Brian Silverman6470f442018-08-05 12:08:16 -070038 "//aos/input:drivetrain_input",
39 "//aos/input:joystick_input",
John Park398c74a2018-10-20 21:17:39 -070040 "//aos:init",
Brian Silverman6470f442018-08-05 12:08:16 -070041 "//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 Crowley71b5f132017-02-18 13:16:08 -080047)
48
49cc_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070050 name = "wpilib_interface",
51 srcs = [
52 "wpilib_interface.cc",
53 ],
54 restricted_to = ["//tools:roborio"],
55 deps = [
56 ":constants",
John Park33858a32018-09-28 23:05:48 -070057 "//aos:math",
58 "//aos/stl_mutex:stl_mutex",
59 "//aos/time:time",
60 "//aos/controls:control_loop",
61 "//aos/logging",
62 "//aos/logging:queue_logging",
63 "//aos/robot_state:robot_state",
64 "//aos/util:log_interval",
65 "//aos/util:phased_loop",
66 "//aos/util:wrapping_counter",
John Park398c74a2018-10-20 21:17:39 -070067 "//aos:init",
Brian Silverman6470f442018-08-05 12:08:16 -070068 "//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 Silverman06016bc2017-02-11 16:34:34 -080086)
Austin Schuh7b9a3ba2017-02-19 23:11:45 -080087
Lee Mracek6821fe02018-11-01 17:27:30 -040088robot_downloader(
89 start_binaries = [
90 ':joystick_reader',
91 ':wpilib_interface',
92 '//y2017/control_loops/drivetrain:drivetrain',
93 '//y2017/control_loops/superstructure:superstructure',
94 '//y2017/actors:autonomous_action',
95 ],
Brian Silverman6470f442018-08-05 12:08:16 -070096)
97
98py_library(
99 name = "python_init",
100 srcs = ["__init__.py"],
101 visibility = ["//visibility:public"],
Austin Schuh7b9a3ba2017-02-19 23:11:45 -0800102)