Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
Austin Schuh | 4f85729 | 2018-02-15 23:42:04 -0800 | [diff] [blame^] | 3 | load('//aos/build:queues.bzl', 'queue_library') |
Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 4 | |
| 5 | queue_library( |
| 6 | name = 'auto_queue', |
| 7 | srcs = [ |
| 8 | 'auto.q', |
| 9 | ], |
| 10 | ) |
| 11 | |
| 12 | cc_library( |
| 13 | name = 'auto_lib', |
| 14 | srcs = [ |
| 15 | 'auto.cc', |
| 16 | ], |
| 17 | hdrs = [ |
| 18 | 'auto.h', |
| 19 | ], |
| 20 | deps = [ |
| 21 | ':auto_queue', |
| 22 | '//aos/common/controls:control_loop', |
Adam Snaider | 83eae56 | 2016-09-10 16:47:33 -0700 | [diff] [blame] | 23 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 24 | '//y2014_bot3/control_loops/rollers:rollers_queue', |
| 25 | '//aos/common:time', |
| 26 | '//aos/common/util:phased_loop', |
| 27 | '//aos/common/util:trapezoid_profile', |
| 28 | '//aos/common/logging', |
| 29 | '//aos/common/logging:queue_logging', |
| 30 | ], |
| 31 | ) |
| 32 | |
| 33 | cc_binary( |
Brian Silverman | 3505ef9 | 2015-12-12 17:23:38 -0500 | [diff] [blame] | 34 | name = 'auto', |
Comran Morshed | 41ed7c2 | 2015-11-04 21:03:37 +0000 | [diff] [blame] | 35 | srcs = [ |
| 36 | 'auto_main.cc', |
| 37 | ], |
| 38 | deps = [ |
| 39 | '//aos/linux_code:init', |
| 40 | ':auto_queue', |
| 41 | ':auto_lib', |
| 42 | ], |
| 43 | ) |