blob: e3de5fb1618035267f84722ad2a16ba20e2926c7 [file] [log] [blame]
Comran Morshed9a9948c2016-01-16 15:58:04 +00001package(default_visibility = ['//visibility:public'])
2
3load('/aos/build/queues', 'queue_library')
4
5filegroup(
6 name = 'binaries',
7 srcs = [
8 ':drivetrain_action',
Comran Morshed2f7b4672016-01-23 14:27:34 +00009 ':superstructure_action',
Comran Morshed9a9948c2016-01-16 15:58:04 +000010 ],
11)
12
13queue_library(
14 name = 'drivetrain_action_queue',
15 srcs = [
16 'drivetrain_action.q',
17 ],
18 deps = [
19 '//aos/common/actions:action_queue',
20 ],
21)
22
23cc_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 Morshed9a9948c2016-01-16 15:58:04 +000033 '//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 Morshed9a9948c2016-01-16 15:58:04 +000039 '//aos/common/util:trapezoid_profile',
40 '//frc971/control_loops/drivetrain:drivetrain_queue',
41 '//frc971/control_loops:state_feedback_loop',
Comran Morshed6c6a0a92016-01-17 12:45:16 +000042 '//third_party/eigen',
43 '//y2016:constants',
Comran Morshed9a9948c2016-01-16 15:58:04 +000044 ],
45)
46
47cc_binary(
48 name = 'drivetrain_action',
49 srcs = [
50 'drivetrain_actor_main.cc',
51 ],
52 deps = [
Comran Morshed9a9948c2016-01-16 15:58:04 +000053 ':drivetrain_action_lib',
54 ':drivetrain_action_queue',
Comran Morshed6c6a0a92016-01-17 12:45:16 +000055 '//aos/linux_code:init',
Comran Morshed9a9948c2016-01-16 15:58:04 +000056 ],
57)
Comran Morshed2f7b4672016-01-23 14:27:34 +000058
59queue_library(
60 name = 'superstructure_action_queue',
61 srcs = [
62 'superstructure_action.q',
63 ],
64 deps = [
65 '//aos/common/actions:action_queue',
66 ],
67)
68
69cc_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
86cc_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)