blob: de100bb569297bc23f16851db6b37e5b096e48aa [file] [log] [blame]
Brian Silverman100534c2015-09-07 15:51:23 -04001package(default_visibility = ['//visibility:public'])
2
3load('/aos/build/queues', 'queue_library')
4
5cc_library(
6 name = 'replay_control_loop',
Austin Schuh044e18b2015-10-21 20:17:09 -07007 hdrs = [
8 'replay_control_loop.h',
9 ],
Brian Silverman100534c2015-09-07 15:51:23 -040010 deps = [
11 '//aos/common:queues',
12 ':control_loop',
Brian Silvermancb5da1f2015-12-05 22:19:58 -050013 '//aos/common/logging:replay',
Brian Silverman100534c2015-09-07 15:51:23 -040014 '//aos/common/logging:queue_logging',
15 '//aos/common:time',
16 ],
17)
18
19cc_library(
20 name = 'control_loop_test',
21 srcs = [
22 'control_loop_test.cc',
23 ],
24 hdrs = [
25 'control_loop_test.h',
26 ],
27 deps = [
Austin Schuh61bdc602016-12-04 19:10:10 -080028 '//aos/common/logging:queue_logging',
Brian Silverman100534c2015-09-07 15:51:23 -040029 '//aos/common/messages:robot_state',
Austin Schuh61bdc602016-12-04 19:10:10 -080030 '//aos/common:time',
Brian Silverman258b9172015-09-19 14:32:57 -040031 '//aos/testing:googletest',
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050032 '//aos/testing:test_shm',
Brian Silverman100534c2015-09-07 15:51:23 -040033 ],
Brian Silvermanb200c172017-01-02 17:35:35 -080034 testonly = True,
Brian Silverman100534c2015-09-07 15:51:23 -040035)
36
37cc_library(
38 name = 'polytope',
Austin Schuh4759ffc2015-10-07 20:39:56 -070039 hdrs = [
40 'polytope.h',
41 ],
Brian Silverman100534c2015-09-07 15:51:23 -040042 deps = [
43 '//third_party/eigen',
Brian Silverman258b9172015-09-19 14:32:57 -040044 '//third_party/cddlib',
Brian Silvermanaba7bf62016-01-31 18:03:59 -050045 '//aos/common/logging',
46 '//aos/common/logging:matrix_logging',
47 ],
48)
49
50cc_test(
51 name = 'polytope_test',
52 srcs = [
53 'polytope_test.cc',
54 ],
55 deps = [
56 ':polytope',
57 '//aos/testing:googletest',
58 '//third_party/eigen',
59 '//third_party/googletest:googlemock',
60 '//aos/testing:test_logging',
Brian Silverman100534c2015-09-07 15:51:23 -040061 ],
62)
63
64queue_library(
65 name = 'control_loop_queues',
66 srcs = [
67 'control_loops.q',
68 ],
69)
70
71cc_library(
72 name = 'control_loop',
73 srcs = [
74 'control_loop.cc',
Austin Schuh044e18b2015-10-21 20:17:09 -070075 'control_loop-tmpl.h',
Brian Silverman100534c2015-09-07 15:51:23 -040076 ],
77 hdrs = [
78 'control_loop.h',
79 ],
80 deps = [
81 '//aos/common/messages:robot_state',
82 '//aos/common/logging',
Brian Silverman100534c2015-09-07 15:51:23 -040083 '//aos/common:time',
84 ':control_loop_queues',
85 '//aos/common/logging:queue_logging',
86 '//aos/common/util:log_interval',
87 '//aos/common:queues',
88 ],
89)