blob: e4ad2ed7538f5b714e7f8d28837e35a3a8c7caf1 [file] [log] [blame]
Lee Mracek6821fe02018-11-01 17:27:30 -04001load("//frc971:downloader.bzl", "robot_downloader")
Austin Schuhb4e31952015-11-26 17:24:30 -08002
Brian Silverman8c374e02015-09-06 23:02:21 -04003cc_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/logging",
Brian Silvermanf819b442019-01-20 16:51:04 -080015 "//aos/mutex",
John Park33858a32018-09-28 23:05:48 -070016 "//aos/network:team_number",
Brian Silverman6470f442018-08-05 12:08:16 -070017 "//frc971:shifter_hall_effect",
18 "//frc971/control_loops:state_feedback_loop",
19 "//y2014/control_loops/drivetrain:polydrivetrain_plants",
20 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040021)
22
23cc_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070024 name = "joystick_reader",
25 srcs = [
26 "joystick_reader.cc",
27 ],
28 deps = [
29 ":constants",
John Park398c74a2018-10-20 21:17:39 -070030 "//aos:init",
Brian Silvermanf819b442019-01-20 16:51:04 -080031 "//aos/actions:action_lib",
32 "//aos/input:joystick_input",
33 "//aos/logging",
34 "//aos/time",
35 "//aos/util:log_interval",
Brian Silverman6470f442018-08-05 12:08:16 -070036 "//frc971/autonomous:auto_queue",
37 "//frc971/control_loops/drivetrain:drivetrain_queue",
38 "//frc971/queues:gyro",
39 "//y2014/actors:shoot_action_lib",
40 "//y2014/control_loops/claw:claw_queue",
41 "//y2014/control_loops/shooter:shooter_queue",
42 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040043)
Austin Schuhb4e31952015-11-26 17:24:30 -080044
Lee Mracek6821fe02018-11-01 17:27:30 -040045robot_downloader(
46 start_binaries = [
Brian Silverman6470f442018-08-05 12:08:16 -070047 ":hot_goal_reader",
48 ":joystick_reader",
49 ":wpilib_interface",
50 "//y2014/control_loops/drivetrain:drivetrain",
51 "//y2014/control_loops/claw:claw",
52 "//y2014/control_loops/shooter:shooter",
53 "//y2014/autonomous:auto",
54 "//y2014/actors:binaries",
Brian Silverman6470f442018-08-05 12:08:16 -070055 ],
Austin Schuhb4e31952015-11-26 17:24:30 -080056)
57
58cc_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070059 name = "hot_goal_reader",
60 srcs = [
61 "hot_goal_reader.cc",
62 ],
63 deps = [
Brian Silvermanf819b442019-01-20 16:51:04 -080064 "//aos:init",
John Park33858a32018-09-28 23:05:48 -070065 "//aos/logging",
66 "//aos/logging:queue_logging",
Brian Silvermanf819b442019-01-20 16:51:04 -080067 "//aos/time",
Brian Silverman6470f442018-08-05 12:08:16 -070068 "//y2014/queues:hot_goal",
69 ],
Austin Schuhb4e31952015-11-26 17:24:30 -080070)
Brian Silverman06016bc2017-02-11 16:34:34 -080071
72cc_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070073 name = "wpilib_interface",
74 srcs = [
75 "wpilib_interface.cc",
76 ],
77 restricted_to = ["//tools:roborio"],
78 deps = [
79 ":constants",
Brian Silvermanf819b442019-01-20 16:51:04 -080080 "//aos:init",
81 "//aos:make_unique",
John Park33858a32018-09-28 23:05:48 -070082 "//aos/controls:control_loop",
83 "//aos/logging",
84 "//aos/logging:queue_logging",
Brian Silvermanf819b442019-01-20 16:51:04 -080085 "//aos/robot_state",
86 "//aos/stl_mutex",
87 "//aos/time",
John Park33858a32018-09-28 23:05:48 -070088 "//aos/util:log_interval",
89 "//aos/util:phased_loop",
90 "//aos/util:wrapping_counter",
Brian Silverman6470f442018-08-05 12:08:16 -070091 "//frc971/control_loops:queues",
92 "//frc971/control_loops/drivetrain:drivetrain_queue",
93 "//frc971/wpilib:buffered_pcm",
94 "//frc971/wpilib:dma",
95 "//frc971/wpilib:dma_edge_counting",
96 "//frc971/wpilib:encoder_and_potentiometer",
97 "//frc971/wpilib:gyro_sender",
98 "//frc971/wpilib:interrupt_edge_counting",
99 "//frc971/wpilib:joystick_sender",
100 "//frc971/wpilib:logging_queue",
101 "//frc971/wpilib:loop_output_handler",
102 "//frc971/wpilib:pdp_fetcher",
103 "//frc971/wpilib:wpilib_interface",
104 "//frc971/wpilib:wpilib_robot_base",
105 "//third_party:wpilib",
106 "//y2014/control_loops/claw:claw_queue",
107 "//y2014/control_loops/shooter:shooter_queue",
108 "//y2014/queues:auto_mode",
109 ],
110)
111
112py_library(
113 name = "python_init",
114 srcs = ["__init__.py"],
115 visibility = ["//visibility:public"],
Brian Silverman06016bc2017-02-11 16:34:34 -0800116)