blob: 0e72985a79cd9644e1425c484372119e5e043eea [file] [log] [blame]
Lee Mracek6821fe02018-11-01 17:27:30 -04001load('//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/mutex:mutex",
15 "//aos/logging",
16 "//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 Park33858a32018-09-28 23:05:48 -070031 "//aos/time:time",
32 "//aos/actions:action_lib",
33 "//aos/logging",
34 "//aos/util:log_interval",
Brian Silverman6470f442018-08-05 12:08:16 -070035 "//aos/input:joystick_input",
John Park398c74a2018-10-20 21:17:39 -070036 "//aos:init",
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(
51 start_binaries = [
52 ':joystick_reader',
53 ':wpilib_interface',
54 '//y2016/control_loops/drivetrain:drivetrain',
55 '//y2016/control_loops/superstructure:superstructure',
56 '//y2016/control_loops/shooter:shooter',
57 '//y2016/dashboard:dashboard',
58 '//y2016/actors:autonomous_action',
59 '//y2016/actors:superstructure_action',
60 '//y2016/actors:vision_align_action',
61 '//y2016/vision:target_receiver',
62 ],
63 dirs = [
64 '//y2016/dashboard:www_files',
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",
John Park33858a32018-09-28 23:05:48 -070076 "//aos:math",
77 "//aos/stl_mutex:stl_mutex",
78 "//aos/time:time",
79 "//aos/controls:control_loop",
80 "//aos/logging",
81 "//aos/logging:queue_logging",
82 "//aos/robot_state:robot_state",
83 "//aos/util:log_interval",
84 "//aos/util:phased_loop",
85 "//aos/util:wrapping_counter",
John Park398c74a2018-10-20 21:17:39 -070086 "//aos:init",
Brian Silverman6470f442018-08-05 12:08:16 -070087 "//frc971/autonomous:auto_queue",
88 "//frc971/control_loops:queues",
89 "//frc971/control_loops/drivetrain:drivetrain_queue",
90 "//frc971/wpilib:ADIS16448",
91 "//frc971/wpilib:buffered_pcm",
92 "//frc971/wpilib:dma",
93 "//frc971/wpilib:dma_edge_counting",
94 "//frc971/wpilib:encoder_and_potentiometer",
95 "//frc971/wpilib:gyro_sender",
96 "//frc971/wpilib:interrupt_edge_counting",
97 "//frc971/wpilib:joystick_sender",
98 "//frc971/wpilib:logging_queue",
99 "//frc971/wpilib:loop_output_handler",
100 "//frc971/wpilib:pdp_fetcher",
101 "//frc971/wpilib:wpilib_interface",
102 "//frc971/wpilib:wpilib_robot_base",
103 "//third_party:wpilib",
104 "//y2016/control_loops/drivetrain:polydrivetrain_plants",
105 "//y2016/control_loops/shooter:shooter_queue",
106 "//y2016/control_loops/superstructure:superstructure_queue",
107 "//y2016/queues:ball_detector",
108 ],
109)
110
111py_library(
112 name = "python_init",
113 srcs = ["__init__.py"],
114 visibility = ["//visibility:public"],
Brian Silverman06016bc2017-02-11 16:34:34 -0800115)