blob: 37de2c9fe463c9b5061b628029ed23f718416a2a [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
13queue_library(
14 name = 'shoot_action_queue',
15 srcs = [
16 'shoot_action.q',
17 ],
Brian Silverman100534c2015-09-07 15:51:23 -040018 deps = [
John Park33858a32018-09-28 23:05:48 -070019 '//aos/actions:action_queue',
Brian Silverman100534c2015-09-07 15:51:23 -040020 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040021)
22
23cc_library(
24 name = 'shoot_action_lib',
25 srcs = [
26 'shoot_actor.cc',
27 ],
Brian Silverman100534c2015-09-07 15:51:23 -040028 hdrs = [
29 'shoot_actor.h',
30 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040031 deps = [
32 ':shoot_action_queue',
John Park33858a32018-09-28 23:05:48 -070033 '//aos/actions:action_lib',
Brian Silverman8c374e02015-09-06 23:02:21 -040034 '//y2014/queues:profile_params',
John Park33858a32018-09-28 23:05:48 -070035 '//aos/logging',
Brian Silverman8c374e02015-09-06 23:02:21 -040036 '//y2014/control_loops/shooter:shooter_queue',
37 '//y2014/control_loops/claw:claw_queue',
Comran Morshed5323ecb2015-12-26 20:50:55 +000038 '//frc971/control_loops/drivetrain:drivetrain_queue',
Brian Silverman8c374e02015-09-06 23:02:21 -040039 '//y2014:constants',
40 ],
41)
42
43cc_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
55queue_library(
56 name = 'drivetrain_action_queue',
57 srcs = [
58 'drivetrain_action.q',
59 ],
Brian Silverman100534c2015-09-07 15:51:23 -040060 deps = [
John Park33858a32018-09-28 23:05:48 -070061 '//aos/actions:action_queue',
Brian Silverman100534c2015-09-07 15:51:23 -040062 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040063)
64
65cc_library(
66 name = 'drivetrain_action_lib',
67 srcs = [
68 'drivetrain_actor.cc',
69 ],
Brian Silverman100534c2015-09-07 15:51:23 -040070 hdrs = [
71 'drivetrain_actor.h',
72 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040073 deps = [
74 ':drivetrain_action_queue',
75 '//y2014:constants',
John Park33858a32018-09-28 23:05:48 -070076 '//aos/time:time',
77 '//aos:math',
78 '//aos/util:phased_loop',
79 '//aos/logging',
80 '//aos/actions:action_lib',
81 '//aos/logging:queue_logging',
Brian Silverman8c374e02015-09-06 23:02:21 -040082 '//third_party/eigen',
John Park33858a32018-09-28 23:05:48 -070083 '//aos/util:trapezoid_profile',
Comran Morshed5323ecb2015-12-26 20:50:55 +000084 '//frc971/control_loops/drivetrain:drivetrain_queue',
Austin Schuhadf2cde2015-11-08 20:35:16 -080085 '//frc971/control_loops:state_feedback_loop',
Brian Silverman8c374e02015-09-06 23:02:21 -040086 ],
87)
88
89cc_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)