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 | 2f7b467 | 2016-01-23 14:27:34 +0000 | [diff] [blame^] | 9 | ':superstructure_action', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 10 | ], |
| 11 | ) |
| 12 | |
| 13 | queue_library( |
| 14 | name = 'drivetrain_action_queue', |
| 15 | srcs = [ |
| 16 | 'drivetrain_action.q', |
| 17 | ], |
| 18 | deps = [ |
| 19 | '//aos/common/actions:action_queue', |
| 20 | ], |
| 21 | ) |
| 22 | |
| 23 | cc_library( |
| 24 | name = 'drivetrain_action_lib', |
| 25 | srcs = [ |
| 26 | 'drivetrain_actor.cc', |
| 27 | ], |
| 28 | hdrs = [ |
| 29 | 'drivetrain_actor.h', |
| 30 | ], |
| 31 | deps = [ |
| 32 | ':drivetrain_action_queue', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 33 | '//aos/common:time', |
| 34 | '//aos/common:math', |
| 35 | '//aos/common/util:phased_loop', |
| 36 | '//aos/common/logging', |
| 37 | '//aos/common/actions:action_lib', |
| 38 | '//aos/common/logging:queue_logging', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 39 | '//aos/common/util:trapezoid_profile', |
| 40 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
| 41 | '//frc971/control_loops:state_feedback_loop', |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 42 | '//third_party/eigen', |
| 43 | '//y2016:constants', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 44 | ], |
| 45 | ) |
| 46 | |
| 47 | cc_binary( |
| 48 | name = 'drivetrain_action', |
| 49 | srcs = [ |
| 50 | 'drivetrain_actor_main.cc', |
| 51 | ], |
| 52 | deps = [ |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 53 | ':drivetrain_action_lib', |
| 54 | ':drivetrain_action_queue', |
Comran Morshed | 6c6a0a9 | 2016-01-17 12:45:16 +0000 | [diff] [blame] | 55 | '//aos/linux_code:init', |
Comran Morshed | 9a9948c | 2016-01-16 15:58:04 +0000 | [diff] [blame] | 56 | ], |
| 57 | ) |
Comran Morshed | 2f7b467 | 2016-01-23 14:27:34 +0000 | [diff] [blame^] | 58 | |
| 59 | queue_library( |
| 60 | name = 'superstructure_action_queue', |
| 61 | srcs = [ |
| 62 | 'superstructure_action.q', |
| 63 | ], |
| 64 | deps = [ |
| 65 | '//aos/common/actions:action_queue', |
| 66 | ], |
| 67 | ) |
| 68 | |
| 69 | cc_library( |
| 70 | name = 'superstructure_action_lib', |
| 71 | srcs = [ |
| 72 | 'superstructure_actor.cc', |
| 73 | ], |
| 74 | hdrs = [ |
| 75 | 'superstructure_actor.h', |
| 76 | ], |
| 77 | deps = [ |
| 78 | ':superstructure_action_queue', |
| 79 | '//aos/common/util:phased_loop', |
| 80 | '//aos/common/logging', |
| 81 | '//aos/common/actions:action_lib', |
| 82 | '//y2016/control_loops/superstructure:superstructure_queue', |
| 83 | ], |
| 84 | ) |
| 85 | |
| 86 | cc_binary( |
| 87 | name = 'superstructure_action', |
| 88 | srcs = [ |
| 89 | 'superstructure_actor_main.cc', |
| 90 | ], |
| 91 | deps = [ |
| 92 | ':superstructure_action_lib', |
| 93 | ':superstructure_action_queue', |
| 94 | '//aos/linux_code:init', |
| 95 | ], |
| 96 | ) |