Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | load('/aos/build/queues', 'queue_library') |
| 4 | |
| 5 | filegroup( |
| 6 | name = 'binaries', |
| 7 | srcs = [ |
| 8 | ':drivetrain_action', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 9 | ], |
| 10 | ) |
| 11 | |
| 12 | queue_library( |
| 13 | name = 'drivetrain_action_queue', |
| 14 | srcs = [ |
| 15 | 'drivetrain_action.q', |
| 16 | ], |
| 17 | deps = [ |
| 18 | '//aos/common/actions:action_queue', |
| 19 | ], |
| 20 | ) |
| 21 | |
| 22 | cc_library( |
| 23 | name = 'drivetrain_action_lib', |
| 24 | srcs = [ |
| 25 | 'drivetrain_actor.cc', |
| 26 | ], |
| 27 | hdrs = [ |
| 28 | 'drivetrain_actor.h', |
| 29 | ], |
| 30 | deps = [ |
| 31 | ':drivetrain_action_queue', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 32 | '//aos/common:time', |
| 33 | '//aos/common:math', |
| 34 | '//aos/common/util:phased_loop', |
| 35 | '//aos/common/logging', |
| 36 | '//aos/common/actions:action_lib', |
| 37 | '//aos/common/logging:queue_logging', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 38 | '//aos/common/util:trapezoid_profile', |
| 39 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
| 40 | '//frc971/control_loops:state_feedback_loop', |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame^] | 41 | '//third_party/eigen', |
| 42 | '//y2016:constants', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 43 | ], |
| 44 | ) |
| 45 | |
| 46 | cc_binary( |
| 47 | name = 'drivetrain_action', |
| 48 | srcs = [ |
| 49 | 'drivetrain_actor_main.cc', |
| 50 | ], |
| 51 | deps = [ |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 52 | ':drivetrain_action_lib', |
| 53 | ':drivetrain_action_queue', |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame^] | 54 | '//aos/linux_code:init', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 55 | ], |
| 56 | ) |