blob: 9c9afeb6705df9c701c7772cdd417a64f672a0e7 [file] [log] [blame]
Brian Silvermanf819b442019-01-20 16:51:04 -08001load("//frc971:downloader.bzl", "robot_downloader")
Comran Morshed9a9948c2016-01-16 15:58:04 +00002
3cc_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:constants",
18 "//frc971:shifter_hall_effect",
19 "//frc971/control_loops:state_feedback_loop",
20 "//y2016/control_loops/drivetrain:polydrivetrain_plants",
21 ],
Comran Morshed9a9948c2016-01-16 15:58:04 +000022)
23
24cc_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070025 name = "joystick_reader",
26 srcs = [
27 "joystick_reader.cc",
28 ],
29 deps = [
30 ":constants",
John Park398c74a2018-10-20 21:17:39 -070031 "//aos:init",
Brian Silvermanf819b442019-01-20 16:51:04 -080032 "//aos/actions:action_lib",
33 "//aos/input:joystick_input",
34 "//aos/logging",
35 "//aos/time",
36 "//aos/util:log_interval",
Brian Silverman6470f442018-08-05 12:08:16 -070037 "//frc971/autonomous:auto_queue",
38 "//frc971/control_loops/drivetrain:drivetrain_queue",
39 "//frc971/queues:gyro",
40 "//y2016/actors:autonomous_action_lib",
41 "//y2016/actors:superstructure_action_lib",
42 "//y2016/actors:vision_align_action_lib",
43 "//y2016/control_loops/shooter:shooter_queue",
44 "//y2016/control_loops/superstructure:superstructure_lib",
45 "//y2016/control_loops/superstructure:superstructure_queue",
46 "//y2016/queues:ball_detector",
47 ],
Comran Morshed9a9948c2016-01-16 15:58:04 +000048)
49
Lee Mracek6821fe02018-11-01 17:27:30 -040050robot_downloader(
Brian Silvermanf819b442019-01-20 16:51:04 -080051 dirs = [
52 "//y2016/dashboard:www_files",
53 ],
54 start_binaries = [
55 ":joystick_reader",
56 ":wpilib_interface",
57 "//y2016/control_loops/drivetrain:drivetrain",
58 "//y2016/control_loops/superstructure:superstructure",
59 "//y2016/control_loops/shooter:shooter",
60 "//y2016/dashboard:dashboard",
61 "//y2016/actors:autonomous_action",
62 "//y2016/actors:superstructure_action",
63 "//y2016/actors:vision_align_action",
64 "//y2016/vision:target_receiver",
65 ],
Austin Schuhc80dd152016-02-29 01:47:44 -080066)
Brian Silverman06016bc2017-02-11 16:34:34 -080067
68cc_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070069 name = "wpilib_interface",
70 srcs = [
71 "wpilib_interface.cc",
72 ],
73 restricted_to = ["//tools:roborio"],
74 deps = [
75 ":constants",
Brian Silvermanf819b442019-01-20 16:51:04 -080076 "//aos:init",
77 "//aos:make_unique",
John Park33858a32018-09-28 23:05:48 -070078 "//aos:math",
John Park33858a32018-09-28 23:05:48 -070079 "//aos/controls:control_loop",
80 "//aos/logging",
81 "//aos/logging:queue_logging",
Brian Silvermanf819b442019-01-20 16:51:04 -080082 "//aos/robot_state",
83 "//aos/stl_mutex",
84 "//aos/time",
John Park33858a32018-09-28 23:05:48 -070085 "//aos/util:log_interval",
86 "//aos/util:phased_loop",
87 "//aos/util:wrapping_counter",
Brian Silverman6470f442018-08-05 12:08:16 -070088 "//frc971/autonomous:auto_queue",
89 "//frc971/control_loops:queues",
90 "//frc971/control_loops/drivetrain:drivetrain_queue",
91 "//frc971/wpilib:ADIS16448",
92 "//frc971/wpilib:buffered_pcm",
93 "//frc971/wpilib:dma",
94 "//frc971/wpilib:dma_edge_counting",
95 "//frc971/wpilib:encoder_and_potentiometer",
96 "//frc971/wpilib:gyro_sender",
97 "//frc971/wpilib:interrupt_edge_counting",
98 "//frc971/wpilib:joystick_sender",
99 "//frc971/wpilib:logging_queue",
100 "//frc971/wpilib:loop_output_handler",
101 "//frc971/wpilib:pdp_fetcher",
Austin Schuh54667ac2019-02-02 16:44:49 -0800102 "//frc971/wpilib:sensor_reader",
Brian Silverman6470f442018-08-05 12:08:16 -0700103 "//frc971/wpilib:wpilib_robot_base",
104 "//third_party:wpilib",
105 "//y2016/control_loops/drivetrain:polydrivetrain_plants",
106 "//y2016/control_loops/shooter:shooter_queue",
107 "//y2016/control_loops/superstructure:superstructure_queue",
108 "//y2016/queues:ball_detector",
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)