blob: 09eb3b0f2453390be466065644335cc02caffba1 [file] [log] [blame]
Brian Silverman8c374e02015-09-06 23:02:21 -04001package(default_visibility = ['//visibility:public'])
2
Austin Schuh4f857292018-02-15 23:42:04 -08003load('//aos/build:queues.bzl', 'queue_library')
Brian Silverman8c374e02015-09-06 23:02:21 -04004
5filegroup(
6 name = 'binaries',
7 srcs = [
8 ':drivetrain_action',
9 ':shoot_action',
10 ],
11)
12
Lee Mracek6821fe02018-11-01 17:27:30 -040013filegroup(
14 name = 'binaries.stripped',
15 srcs = [
16 ':drivetrain_action.stripped',
17 ':shoot_action.stripped',
18 ],
19)
20
Brian Silverman8c374e02015-09-06 23:02:21 -040021queue_library(
22 name = 'shoot_action_queue',
23 srcs = [
24 'shoot_action.q',
25 ],
Brian Silverman100534c2015-09-07 15:51:23 -040026 deps = [
John Park33858a32018-09-28 23:05:48 -070027 '//aos/actions:action_queue',
Brian Silverman100534c2015-09-07 15:51:23 -040028 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040029)
30
31cc_library(
32 name = 'shoot_action_lib',
33 srcs = [
34 'shoot_actor.cc',
35 ],
Brian Silverman100534c2015-09-07 15:51:23 -040036 hdrs = [
37 'shoot_actor.h',
38 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040039 deps = [
40 ':shoot_action_queue',
John Park33858a32018-09-28 23:05:48 -070041 '//aos/actions:action_lib',
Brian Silverman8c374e02015-09-06 23:02:21 -040042 '//y2014/queues:profile_params',
John Park33858a32018-09-28 23:05:48 -070043 '//aos/logging',
Brian Silverman8c374e02015-09-06 23:02:21 -040044 '//y2014/control_loops/shooter:shooter_queue',
45 '//y2014/control_loops/claw:claw_queue',
Comran Morshed5323ecb2015-12-26 20:50:55 +000046 '//frc971/control_loops/drivetrain:drivetrain_queue',
Brian Silverman8c374e02015-09-06 23:02:21 -040047 '//y2014:constants',
48 ],
49)
50
51cc_binary(
52 name = 'shoot_action',
53 srcs = [
54 'shoot_actor_main.cc',
55 ],
56 deps = [
John Park398c74a2018-10-20 21:17:39 -070057 '//aos:init',
Brian Silverman8c374e02015-09-06 23:02:21 -040058 ':shoot_action_lib',
59 ':shoot_action_queue',
60 ],
61)
62
63queue_library(
64 name = 'drivetrain_action_queue',
65 srcs = [
66 'drivetrain_action.q',
67 ],
Brian Silverman100534c2015-09-07 15:51:23 -040068 deps = [
John Park33858a32018-09-28 23:05:48 -070069 '//aos/actions:action_queue',
Brian Silverman100534c2015-09-07 15:51:23 -040070 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040071)
72
73cc_library(
74 name = 'drivetrain_action_lib',
75 srcs = [
76 'drivetrain_actor.cc',
77 ],
Brian Silverman100534c2015-09-07 15:51:23 -040078 hdrs = [
79 'drivetrain_actor.h',
80 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040081 deps = [
82 ':drivetrain_action_queue',
83 '//y2014:constants',
John Park33858a32018-09-28 23:05:48 -070084 '//aos/time:time',
85 '//aos:math',
86 '//aos/util:phased_loop',
87 '//aos/logging',
88 '//aos/actions:action_lib',
89 '//aos/logging:queue_logging',
Brian Silverman8c374e02015-09-06 23:02:21 -040090 '//third_party/eigen',
John Park33858a32018-09-28 23:05:48 -070091 '//aos/util:trapezoid_profile',
Comran Morshed5323ecb2015-12-26 20:50:55 +000092 '//frc971/control_loops/drivetrain:drivetrain_queue',
Austin Schuhadf2cde2015-11-08 20:35:16 -080093 '//frc971/control_loops:state_feedback_loop',
Brian Silverman8c374e02015-09-06 23:02:21 -040094 ],
95)
96
97cc_binary(
98 name = 'drivetrain_action',
99 srcs = [
100 'drivetrain_actor_main.cc',
101 ],
102 deps = [
John Park398c74a2018-10-20 21:17:39 -0700103 '//aos:init',
Brian Silverman8c374e02015-09-06 23:02:21 -0400104 ':drivetrain_action_lib',
105 ':drivetrain_action_queue',
106 ],
107)