blob: c7622f88655ffb97db843d991fea204aa92c32a3 [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 ],
Brian Silverman7a7c24d2018-09-01 17:49:09 -070011 compatible_with = [
12 "//tools:armhf-debian",
13 ],
Brian Silverman6470f442018-08-05 12:08:16 -070014 visibility = ["//visibility:public"],
15 deps = [
16 "//aos:once",
John Park33858a32018-09-28 23:05:48 -070017 "//aos/mutex:mutex",
18 "//aos/logging",
19 "//aos/network:team_number",
Brian Silverman6470f442018-08-05 12:08:16 -070020 "//frc971:constants",
21 "//frc971:shifter_hall_effect",
22 "//frc971/control_loops:state_feedback_loop",
23 "//y2016/control_loops/drivetrain:polydrivetrain_plants",
24 ],
Comran Morshed9a9948c2016-01-16 15:58:04 +000025)
26
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:joystick_input",
John Park398c74a2018-10-20 21:17:39 -070039 "//aos:init",
Brian Silverman6470f442018-08-05 12:08:16 -070040 "//frc971/autonomous:auto_queue",
41 "//frc971/control_loops/drivetrain:drivetrain_queue",
42 "//frc971/queues:gyro",
43 "//y2016/actors:autonomous_action_lib",
44 "//y2016/actors:superstructure_action_lib",
45 "//y2016/actors:vision_align_action_lib",
46 "//y2016/control_loops/shooter:shooter_queue",
47 "//y2016/control_loops/superstructure:superstructure_lib",
48 "//y2016/control_loops/superstructure:superstructure_queue",
49 "//y2016/queues:ball_detector",
50 ],
Comran Morshed9a9948c2016-01-16 15:58:04 +000051)
52
Lee Mracek6821fe02018-11-01 17:27:30 -040053robot_downloader(
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 ],
66 dirs = [
67 '//y2016/dashboard:www_files',
68 ],
Austin Schuhc80dd152016-02-29 01:47:44 -080069)
Brian Silverman06016bc2017-02-11 16:34:34 -080070
71cc_binary(
Brian Silverman6470f442018-08-05 12:08:16 -070072 name = "wpilib_interface",
73 srcs = [
74 "wpilib_interface.cc",
75 ],
76 restricted_to = ["//tools:roborio"],
77 deps = [
78 ":constants",
John Park33858a32018-09-28 23:05:48 -070079 "//aos:math",
80 "//aos/stl_mutex:stl_mutex",
81 "//aos/time:time",
82 "//aos/controls:control_loop",
83 "//aos/logging",
84 "//aos/logging:queue_logging",
85 "//aos/robot_state:robot_state",
86 "//aos/util:log_interval",
87 "//aos/util:phased_loop",
88 "//aos/util:wrapping_counter",
John Park398c74a2018-10-20 21:17:39 -070089 "//aos:init",
Brian Silverman6470f442018-08-05 12:08:16 -070090 "//frc971/autonomous:auto_queue",
91 "//frc971/control_loops:queues",
92 "//frc971/control_loops/drivetrain:drivetrain_queue",
93 "//frc971/wpilib:ADIS16448",
94 "//frc971/wpilib:buffered_pcm",
95 "//frc971/wpilib:dma",
96 "//frc971/wpilib:dma_edge_counting",
97 "//frc971/wpilib:encoder_and_potentiometer",
98 "//frc971/wpilib:gyro_sender",
99 "//frc971/wpilib:interrupt_edge_counting",
100 "//frc971/wpilib:joystick_sender",
101 "//frc971/wpilib:logging_queue",
102 "//frc971/wpilib:loop_output_handler",
103 "//frc971/wpilib:pdp_fetcher",
104 "//frc971/wpilib:wpilib_interface",
105 "//frc971/wpilib:wpilib_robot_base",
106 "//third_party:wpilib",
107 "//y2016/control_loops/drivetrain:polydrivetrain_plants",
108 "//y2016/control_loops/shooter:shooter_queue",
109 "//y2016/control_loops/superstructure:superstructure_queue",
110 "//y2016/queues:ball_detector",
111 ],
112)
113
114py_library(
115 name = "python_init",
116 srcs = ["__init__.py"],
117 visibility = ["//visibility:public"],
Brian Silverman06016bc2017-02-11 16:34:34 -0800118)