Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [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') |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 4 | |
| 5 | filegroup( |
| 6 | name = 'binaries', |
| 7 | srcs = [ |
| 8 | ':drivetrain_action', |
| 9 | ':shoot_action', |
| 10 | ], |
| 11 | ) |
| 12 | |
| 13 | queue_library( |
| 14 | name = 'shoot_action_queue', |
| 15 | srcs = [ |
| 16 | 'shoot_action.q', |
| 17 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 18 | deps = [ |
| 19 | '//aos/common/actions:action_queue', |
| 20 | ], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 21 | ) |
| 22 | |
| 23 | cc_library( |
| 24 | name = 'shoot_action_lib', |
| 25 | srcs = [ |
| 26 | 'shoot_actor.cc', |
| 27 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 28 | hdrs = [ |
| 29 | 'shoot_actor.h', |
| 30 | ], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 31 | deps = [ |
| 32 | ':shoot_action_queue', |
| 33 | '//aos/common/actions:action_lib', |
| 34 | '//y2014/queues:profile_params', |
| 35 | '//aos/common/logging', |
| 36 | '//y2014/control_loops/shooter:shooter_queue', |
| 37 | '//y2014/control_loops/claw:claw_queue', |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 38 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 39 | '//y2014:constants', |
| 40 | ], |
| 41 | ) |
| 42 | |
| 43 | cc_binary( |
| 44 | name = 'shoot_action', |
| 45 | srcs = [ |
| 46 | 'shoot_actor_main.cc', |
| 47 | ], |
| 48 | deps = [ |
| 49 | '//aos/linux_code:init', |
| 50 | ':shoot_action_lib', |
| 51 | ':shoot_action_queue', |
| 52 | ], |
| 53 | ) |
| 54 | |
| 55 | queue_library( |
| 56 | name = 'drivetrain_action_queue', |
| 57 | srcs = [ |
| 58 | 'drivetrain_action.q', |
| 59 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 60 | deps = [ |
| 61 | '//aos/common/actions:action_queue', |
| 62 | ], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 63 | ) |
| 64 | |
| 65 | cc_library( |
| 66 | name = 'drivetrain_action_lib', |
| 67 | srcs = [ |
| 68 | 'drivetrain_actor.cc', |
| 69 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 70 | hdrs = [ |
| 71 | 'drivetrain_actor.h', |
| 72 | ], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 73 | deps = [ |
| 74 | ':drivetrain_action_queue', |
| 75 | '//y2014:constants', |
| 76 | '//aos/common:time', |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 77 | '//aos/common:math', |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 78 | '//aos/common/util:phased_loop', |
| 79 | '//aos/common/logging', |
| 80 | '//aos/common/actions:action_lib', |
| 81 | '//aos/common/logging:queue_logging', |
| 82 | '//third_party/eigen', |
| 83 | '//aos/common/util:trapezoid_profile', |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 84 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
Austin Schuh | adf2cde | 2015-11-08 20:35:16 -0800 | [diff] [blame] | 85 | '//frc971/control_loops:state_feedback_loop', |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 86 | ], |
| 87 | ) |
| 88 | |
| 89 | cc_binary( |
| 90 | name = 'drivetrain_action', |
| 91 | srcs = [ |
| 92 | 'drivetrain_actor_main.cc', |
| 93 | ], |
| 94 | deps = [ |
| 95 | '//aos/linux_code:init', |
| 96 | ':drivetrain_action_lib', |
| 97 | ':drivetrain_action_queue', |
| 98 | ], |
| 99 | ) |