Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
Brian Silverman | 258b917 | 2015-09-19 14:32:57 -0400 | [diff] [blame] | 3 | load('/aos/build/queues', 'queue_library') |
| 4 | |
| 5 | queue_library( |
| 6 | name = 'zeroing_queue', |
| 7 | srcs = [ |
| 8 | 'zeroing_queue.q', |
| 9 | ], |
| 10 | ) |
| 11 | |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 12 | cc_library( |
| 13 | name = 'zeroing', |
| 14 | srcs = [ |
| 15 | 'zeroing.cc', |
| 16 | ], |
| 17 | hdrs = [ |
| 18 | 'zeroing.h', |
| 19 | ], |
| 20 | deps = [ |
| 21 | '//frc971/control_loops:queues', |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 22 | '//frc971:constants', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 23 | ], |
| 24 | ) |
| 25 | |
| 26 | cc_test( |
| 27 | name = 'zeroing_test', |
| 28 | srcs = [ |
| 29 | 'zeroing_test.cc', |
| 30 | ], |
| 31 | deps = [ |
Brian Silverman | 258b917 | 2015-09-19 14:32:57 -0400 | [diff] [blame] | 32 | '//aos/testing:googletest', |
Brian Silverman | f5f8d8e | 2015-12-06 18:39:12 -0500 | [diff] [blame] | 33 | '//aos/testing:test_shm', |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 34 | ':zeroing', |
| 35 | '//aos/common/util:thread', |
| 36 | '//aos/common:die', |
| 37 | '//frc971/control_loops:position_sensor_sim', |
| 38 | '//frc971/control_loops:queues', |
| 39 | ], |
| 40 | ) |