blob: 7f6b8e00a9e58e3b0d3d14991f0f5edc830ccb9a [file] [log] [blame]
Brian Silverman100534c2015-09-07 15:51:23 -04001package(default_visibility = ['//visibility:public'])
2
3load('/aos/build/queues', 'queue_library')
4
5queue_library(
6 name = 'logging_queue',
7 srcs = [
8 'logging.q',
9 ],
10)
11
12cc_library(
13 name = 'encoder_and_potentiometer',
14 srcs = [
15 'encoder_and_potentiometer.cc',
16 ],
17 hdrs = [
18 'encoder_and_potentiometer.h',
19 ],
20 deps = [
Austin Schuh2a70f4b2016-11-25 23:05:57 -080021 '//third_party:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040022 ':dma_edge_counting',
23 '//aos/linux_code:init',
24 '//aos/common/logging',
Brian Silverman2200b2c2015-11-29 05:59:28 +000025 '//aos/common:mutex',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -050026 ':dma',
Brian Silverman100534c2015-09-07 15:51:23 -040027 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -070028 restricted_to = ['//tools:roborio'],
Brian Silverman100534c2015-09-07 15:51:23 -040029)
30
31cc_library(
32 name = 'dma_edge_counting',
33 srcs = [
34 'dma_edge_counting.cc',
35 ],
36 hdrs = [
37 'dma_edge_counting.h',
38 ],
39 deps = [
Austin Schuh2a70f4b2016-11-25 23:05:57 -080040 '//third_party:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040041 '//aos/common/logging',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -050042 ':dma',
Brian Silverman100534c2015-09-07 15:51:23 -040043 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -070044 restricted_to = ['//tools:roborio'],
Brian Silverman100534c2015-09-07 15:51:23 -040045)
46
47cc_library(
48 name = 'interrupt_edge_counting',
49 srcs = [
50 'interrupt_edge_counting.cc',
51 ],
52 hdrs = [
53 'interrupt_edge_counting.h',
54 ],
55 deps = [
Austin Schuh2a70f4b2016-11-25 23:05:57 -080056 '//third_party:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040057 '//aos/common/logging',
58 '//aos/common:stl_mutex',
59 '//aos/common:time',
60 '//aos/linux_code:init',
61 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -070062 restricted_to = ['//tools:roborio'],
Brian Silverman100534c2015-09-07 15:51:23 -040063)
64
65cc_library(
66 name = 'buffered_pcm',
67 srcs = [
68 'buffered_solenoid.cc',
69 'buffered_pcm.cc',
70 ],
71 hdrs = [
72 'buffered_solenoid.h',
73 'buffered_pcm.h',
74 ],
75 deps = [
Austin Schuh2a70f4b2016-11-25 23:05:57 -080076 '//third_party:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040077 '//aos/common/logging',
78 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -070079 restricted_to = ['//tools:roborio'],
Brian Silverman100534c2015-09-07 15:51:23 -040080)
81
82cc_library(
83 name = 'gyro_interface',
84 srcs = [
85 'gyro_interface.cc',
86 ],
87 hdrs = [
88 'gyro_interface.h',
89 ],
90 deps = [
Austin Schuh2a70f4b2016-11-25 23:05:57 -080091 '//third_party:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040092 '//aos/common/logging',
Brian Silvermanedacaa72015-12-20 18:25:27 -050093 '//aos/common:time',
Brian Silverman100534c2015-09-07 15:51:23 -040094 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -070095 restricted_to = ['//tools:roborio'],
Brian Silverman100534c2015-09-07 15:51:23 -040096)
97
98cc_library(
99 name = 'gyro_sender',
100 srcs = [
101 'gyro_sender.cc',
102 ],
103 hdrs = [
104 'gyro_sender.h',
105 ],
106 deps = [
Brian Silverman100534c2015-09-07 15:51:23 -0400107 ':gyro_interface',
Philipp Schrader29d54f22016-04-02 22:14:48 +0000108 '//frc971/queues:gyro',
109 '//frc971/zeroing:averager',
Brian Silverman100534c2015-09-07 15:51:23 -0400110 '//aos/common/logging',
111 '//aos/common/logging:queue_logging',
112 '//aos/common/util:phased_loop',
113 '//aos/common/messages:robot_state',
114 '//aos/linux_code:init',
115 '//aos/common:time',
116 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -0700117 restricted_to = ['//tools:roborio'],
Brian Silverman100534c2015-09-07 15:51:23 -0400118)
119
120cc_library(
Comran Morshed33ad1692015-12-06 18:53:02 +0000121 name = 'lpd8806',
122 srcs = [
123 'LPD8806.cc',
124 ],
125 hdrs = [
126 'LPD8806.h',
127 ],
128 deps = [
129 '//aos/common:mutex',
Austin Schuh2a70f4b2016-11-25 23:05:57 -0800130 '//third_party:wpilib',
Comran Morshed33ad1692015-12-06 18:53:02 +0000131 '//frc971/queues:gyro',
132 '//aos/common:time',
133 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -0700134 restricted_to = ['//tools:roborio'],
Comran Morshed33ad1692015-12-06 18:53:02 +0000135)
136
137cc_library(
Brian Silverman100534c2015-09-07 15:51:23 -0400138 name = 'loop_output_handler',
139 srcs = [
140 'loop_output_handler.cc',
141 ],
142 hdrs = [
143 'loop_output_handler.h',
144 ],
145 deps = [
146 '//aos/common:scoped_fd',
147 '//aos/linux_code:init',
148 '//aos/common:time',
149 '//aos/common/util:log_interval',
150 '//aos/common/messages:robot_state',
151 ],
152)
153
154cc_library(
155 name = 'joystick_sender',
156 srcs = [
157 'joystick_sender.cc',
158 ],
159 hdrs = [
160 'joystick_sender.h',
161 ],
162 deps = [
Austin Schuh2a70f4b2016-11-25 23:05:57 -0800163 '//third_party:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -0400164 '//aos/common/messages:robot_state',
165 '//aos/linux_code:init',
166 '//aos/common/network:team_number',
167 '//aos/common/logging:queue_logging',
168 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -0700169 restricted_to = ['//tools:roborio'],
Brian Silverman100534c2015-09-07 15:51:23 -0400170)
Brian Silverman811f8ec2015-12-06 01:29:42 -0500171
172cc_library(
173 name = 'wpilib_interface',
174 srcs = [
175 'wpilib_interface.cc',
176 ],
177 hdrs = [
178 'wpilib_interface.h',
179 ],
180 deps = [
181 '//aos/common/messages:robot_state',
Austin Schuh2a70f4b2016-11-25 23:05:57 -0800182 '//third_party:wpilib',
Brian Silverman811f8ec2015-12-06 01:29:42 -0500183 '//aos/common/logging:queue_logging',
Brian Silverman39b339e2016-01-03 13:24:22 -0800184 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -0700185 restricted_to = ['//tools:roborio'],
Brian Silverman39b339e2016-01-03 13:24:22 -0800186)
187
188queue_library(
189 name = 'pdp_values',
190 srcs = [
191 'pdp_values.q',
Brian Silverman425492b2015-12-30 15:23:55 -0800192 ],
193)
194
195cc_library(
196 name = 'pdp_fetcher',
197 srcs = [
198 'pdp_fetcher.cc',
199 ],
200 hdrs = [
201 'pdp_fetcher.h',
202 ],
203 deps = [
Brian Silverman39b339e2016-01-03 13:24:22 -0800204 ':pdp_values',
Austin Schuh2a70f4b2016-11-25 23:05:57 -0800205 '//third_party:wpilib',
Brian Silverman425492b2015-12-30 15:23:55 -0800206 '//aos/common/logging:queue_logging',
207 '//aos/linux_code:init',
Brian Silverman25ff5052016-01-02 14:13:46 -0800208 '//aos/common/util:phased_loop',
Brian Silverman811f8ec2015-12-06 01:29:42 -0500209 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -0700210 restricted_to = ['//tools:roborio'],
Brian Silverman811f8ec2015-12-06 01:29:42 -0500211)
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800212
213cc_library(
214 name = 'wpilib_robot_base',
215 hdrs = [
216 'wpilib_robot_base.h',
217 ],
218 deps = [
Austin Schuh2a70f4b2016-11-25 23:05:57 -0800219 '//third_party:wpilib',
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800220 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -0700221 restricted_to = ['//tools:roborio'],
Campbell Crowleyc0cfb132015-12-30 20:58:02 -0800222)
Brian Silverman5f17a972016-02-28 01:49:32 -0500223
224queue_library(
225 name = 'imu_queue',
226 srcs = [
227 'imu.q',
228 ],
229)
230
231cc_library(
232 name = 'ADIS16448',
233 hdrs = [
234 'ADIS16448.h',
235 ],
236 srcs = [
237 'ADIS16448.cc',
238 ],
239 deps = [
Philipp Schrader29d54f22016-04-02 22:14:48 +0000240 ':imu_queue',
Brian Silverman5f17a972016-02-28 01:49:32 -0500241 '//aos/common/logging',
242 '//aos/common/logging:queue_logging',
Austin Schuh943fcbd2016-04-03 21:35:41 -0700243 '//aos/common/messages:robot_state',
Brian Silverman5f17a972016-02-28 01:49:32 -0500244 '//aos/common:time',
245 '//aos/linux_code:init',
Philipp Schrader29d54f22016-04-02 22:14:48 +0000246 '//frc971/zeroing:averager',
Austin Schuh2a70f4b2016-11-25 23:05:57 -0800247 '//third_party:wpilib',
Brian Silverman5f17a972016-02-28 01:49:32 -0500248 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -0700249 restricted_to = ['//tools:roborio'],
Brian Silverman5f17a972016-02-28 01:49:32 -0500250)
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500251
252cc_library(
253 name = 'dma',
254 hdrs = [
255 'dma.h',
256 ],
257 srcs = [
258 'dma.cc',
259 ],
260 deps = [
Austin Schuh2a70f4b2016-11-25 23:05:57 -0800261 '//third_party:wpilib',
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500262 ],
Austin Schuh9d92e6b2017-10-17 01:19:38 -0700263 restricted_to = ['//tools:roborio'],
Brian Silvermanb5b46ca2016-03-13 01:14:17 -0500264)