Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | load('/aos/build/queues', 'queue_library') |
| 4 | |
| 5 | queue_library( |
| 6 | name = 'logging_queue', |
| 7 | srcs = [ |
| 8 | 'logging.q', |
| 9 | ], |
| 10 | ) |
| 11 | |
| 12 | cc_library( |
| 13 | name = 'encoder_and_potentiometer', |
| 14 | srcs = [ |
| 15 | 'encoder_and_potentiometer.cc', |
| 16 | ], |
| 17 | hdrs = [ |
| 18 | 'encoder_and_potentiometer.h', |
| 19 | ], |
| 20 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 21 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 22 | ':dma_edge_counting', |
| 23 | '//aos/linux_code:init', |
| 24 | '//aos/common/logging', |
Brian Silverman | 2200b2c | 2015-11-29 05:59:28 +0000 | [diff] [blame] | 25 | '//aos/common:mutex', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 26 | ':dma', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 27 | ], |
| 28 | ) |
| 29 | |
| 30 | cc_library( |
| 31 | name = 'dma_edge_counting', |
| 32 | srcs = [ |
| 33 | 'dma_edge_counting.cc', |
| 34 | ], |
| 35 | hdrs = [ |
| 36 | 'dma_edge_counting.h', |
| 37 | ], |
| 38 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 39 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 40 | '//aos/common/logging', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 41 | ':dma', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 42 | ], |
| 43 | ) |
| 44 | |
| 45 | cc_library( |
| 46 | name = 'interrupt_edge_counting', |
| 47 | srcs = [ |
| 48 | 'interrupt_edge_counting.cc', |
| 49 | ], |
| 50 | hdrs = [ |
| 51 | 'interrupt_edge_counting.h', |
| 52 | ], |
| 53 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 54 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 55 | '//aos/common/logging', |
| 56 | '//aos/common:stl_mutex', |
| 57 | '//aos/common:time', |
| 58 | '//aos/linux_code:init', |
| 59 | ], |
| 60 | ) |
| 61 | |
| 62 | cc_library( |
| 63 | name = 'buffered_pcm', |
| 64 | srcs = [ |
| 65 | 'buffered_solenoid.cc', |
| 66 | 'buffered_pcm.cc', |
| 67 | ], |
| 68 | hdrs = [ |
| 69 | 'buffered_solenoid.h', |
| 70 | 'buffered_pcm.h', |
| 71 | ], |
| 72 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 73 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 74 | '//aos/common/logging', |
| 75 | ], |
| 76 | ) |
| 77 | |
| 78 | cc_library( |
| 79 | name = 'gyro_interface', |
| 80 | srcs = [ |
| 81 | 'gyro_interface.cc', |
| 82 | ], |
| 83 | hdrs = [ |
| 84 | 'gyro_interface.h', |
| 85 | ], |
| 86 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 87 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 88 | '//aos/common/logging', |
Brian Silverman | edacaa7 | 2015-12-20 18:25:27 -0500 | [diff] [blame] | 89 | '//aos/common:time', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 90 | ], |
| 91 | ) |
| 92 | |
| 93 | cc_library( |
| 94 | name = 'gyro_sender', |
| 95 | srcs = [ |
| 96 | 'gyro_sender.cc', |
| 97 | ], |
| 98 | hdrs = [ |
| 99 | 'gyro_sender.h', |
| 100 | ], |
| 101 | deps = [ |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 102 | ':gyro_interface', |
Philipp Schrader | 29d54f2 | 2016-04-02 22:14:48 +0000 | [diff] [blame^] | 103 | '//frc971/queues:gyro', |
| 104 | '//frc971/zeroing:averager', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 105 | '//aos/common/logging', |
| 106 | '//aos/common/logging:queue_logging', |
| 107 | '//aos/common/util:phased_loop', |
| 108 | '//aos/common/messages:robot_state', |
| 109 | '//aos/linux_code:init', |
| 110 | '//aos/common:time', |
| 111 | ], |
| 112 | ) |
| 113 | |
| 114 | cc_library( |
Comran Morshed | 33ad169 | 2015-12-06 18:53:02 +0000 | [diff] [blame] | 115 | name = 'lpd8806', |
| 116 | srcs = [ |
| 117 | 'LPD8806.cc', |
| 118 | ], |
| 119 | hdrs = [ |
| 120 | 'LPD8806.h', |
| 121 | ], |
| 122 | deps = [ |
| 123 | '//aos/common:mutex', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 124 | '//third_party/allwpilib_2016:wpilib', |
Comran Morshed | 33ad169 | 2015-12-06 18:53:02 +0000 | [diff] [blame] | 125 | '//frc971/queues:gyro', |
| 126 | '//aos/common:time', |
| 127 | ], |
| 128 | ) |
| 129 | |
| 130 | cc_library( |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 131 | name = 'loop_output_handler', |
| 132 | srcs = [ |
| 133 | 'loop_output_handler.cc', |
| 134 | ], |
| 135 | hdrs = [ |
| 136 | 'loop_output_handler.h', |
| 137 | ], |
| 138 | deps = [ |
| 139 | '//aos/common:scoped_fd', |
| 140 | '//aos/linux_code:init', |
| 141 | '//aos/common:time', |
| 142 | '//aos/common/util:log_interval', |
| 143 | '//aos/common/messages:robot_state', |
| 144 | ], |
| 145 | ) |
| 146 | |
| 147 | cc_library( |
| 148 | name = 'joystick_sender', |
| 149 | srcs = [ |
| 150 | 'joystick_sender.cc', |
| 151 | ], |
| 152 | hdrs = [ |
| 153 | 'joystick_sender.h', |
| 154 | ], |
| 155 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 156 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 157 | '//aos/common/messages:robot_state', |
| 158 | '//aos/linux_code:init', |
| 159 | '//aos/common/network:team_number', |
| 160 | '//aos/common/logging:queue_logging', |
| 161 | ], |
| 162 | ) |
Brian Silverman | 811f8ec | 2015-12-06 01:29:42 -0500 | [diff] [blame] | 163 | |
| 164 | cc_library( |
| 165 | name = 'wpilib_interface', |
| 166 | srcs = [ |
| 167 | 'wpilib_interface.cc', |
| 168 | ], |
| 169 | hdrs = [ |
| 170 | 'wpilib_interface.h', |
| 171 | ], |
| 172 | deps = [ |
| 173 | '//aos/common/messages:robot_state', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 174 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 811f8ec | 2015-12-06 01:29:42 -0500 | [diff] [blame] | 175 | '//aos/common/logging:queue_logging', |
Brian Silverman | 39b339e | 2016-01-03 13:24:22 -0800 | [diff] [blame] | 176 | ], |
| 177 | ) |
| 178 | |
| 179 | queue_library( |
| 180 | name = 'pdp_values', |
| 181 | srcs = [ |
| 182 | 'pdp_values.q', |
Brian Silverman | 425492b | 2015-12-30 15:23:55 -0800 | [diff] [blame] | 183 | ], |
| 184 | ) |
| 185 | |
| 186 | cc_library( |
| 187 | name = 'pdp_fetcher', |
| 188 | srcs = [ |
| 189 | 'pdp_fetcher.cc', |
| 190 | ], |
| 191 | hdrs = [ |
| 192 | 'pdp_fetcher.h', |
| 193 | ], |
| 194 | deps = [ |
Brian Silverman | 39b339e | 2016-01-03 13:24:22 -0800 | [diff] [blame] | 195 | ':pdp_values', |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 196 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 425492b | 2015-12-30 15:23:55 -0800 | [diff] [blame] | 197 | '//aos/common/logging:queue_logging', |
| 198 | '//aos/linux_code:init', |
Brian Silverman | 25ff505 | 2016-01-02 14:13:46 -0800 | [diff] [blame] | 199 | '//aos/common/util:phased_loop', |
Brian Silverman | 811f8ec | 2015-12-06 01:29:42 -0500 | [diff] [blame] | 200 | ], |
| 201 | ) |
Campbell Crowley | c0cfb13 | 2015-12-30 20:58:02 -0800 | [diff] [blame] | 202 | |
| 203 | cc_library( |
| 204 | name = 'wpilib_robot_base', |
| 205 | hdrs = [ |
| 206 | 'wpilib_robot_base.h', |
| 207 | ], |
| 208 | deps = [ |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 209 | '//third_party/allwpilib_2016:wpilib', |
Campbell Crowley | c0cfb13 | 2015-12-30 20:58:02 -0800 | [diff] [blame] | 210 | ], |
| 211 | ) |
Brian Silverman | 5f17a97 | 2016-02-28 01:49:32 -0500 | [diff] [blame] | 212 | |
| 213 | queue_library( |
| 214 | name = 'imu_queue', |
| 215 | srcs = [ |
| 216 | 'imu.q', |
| 217 | ], |
| 218 | ) |
| 219 | |
| 220 | cc_library( |
| 221 | name = 'ADIS16448', |
| 222 | hdrs = [ |
| 223 | 'ADIS16448.h', |
| 224 | ], |
| 225 | srcs = [ |
| 226 | 'ADIS16448.cc', |
| 227 | ], |
| 228 | deps = [ |
Philipp Schrader | 29d54f2 | 2016-04-02 22:14:48 +0000 | [diff] [blame^] | 229 | ':imu_queue', |
Brian Silverman | 5f17a97 | 2016-02-28 01:49:32 -0500 | [diff] [blame] | 230 | '//aos/common/logging', |
| 231 | '//aos/common/logging:queue_logging', |
| 232 | '//aos/common:time', |
| 233 | '//aos/linux_code:init', |
Philipp Schrader | 29d54f2 | 2016-04-02 22:14:48 +0000 | [diff] [blame^] | 234 | '//frc971/zeroing:averager', |
| 235 | '//third_party/allwpilib_2016:wpilib', |
Brian Silverman | 5f17a97 | 2016-02-28 01:49:32 -0500 | [diff] [blame] | 236 | ], |
| 237 | ) |
Brian Silverman | b5b46ca | 2016-03-13 01:14:17 -0500 | [diff] [blame] | 238 | |
| 239 | cc_library( |
| 240 | name = 'dma', |
| 241 | hdrs = [ |
| 242 | 'dma.h', |
| 243 | ], |
| 244 | srcs = [ |
| 245 | 'dma.cc', |
| 246 | ], |
| 247 | deps = [ |
| 248 | '//third_party/allwpilib_2016:wpilib', |
| 249 | ], |
| 250 | ) |