blob: 8f8b381f5bfc20beb3c1f3774c3af979efc9ab9d [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 = 'team_number_test_environment',
7 srcs = [
8 'team_number_test_environment.cc',
9 ],
10 hdrs = [
11 'team_number_test_environment.h',
12 ],
13 deps = [
14 '//aos/common/network:team_number',
Brian Silverman258b9172015-09-19 14:32:57 -040015 '//aos/testing:googletest',
Brian Silverman100534c2015-09-07 15:51:23 -040016 ],
Brian Silvermanb200c172017-01-02 17:35:35 -080017 testonly = True,
Brian Silverman100534c2015-09-07 15:51:23 -040018)
19
20cc_test(
21 name = 'state_feedback_loop_test',
22 srcs = [
23 'state_feedback_loop_test.cc',
24 ],
25 deps = [
26 ':state_feedback_loop',
Brian Silverman258b9172015-09-19 14:32:57 -040027 '//aos/testing:googletest',
Brian Silverman100534c2015-09-07 15:51:23 -040028 ],
29)
30
31cc_library(
32 name = 'hall_effect_tracker',
Austin Schuh044e18b2015-10-21 20:17:09 -070033 hdrs = [
34 'hall_effect_tracker.h',
35 ],
Brian Silverman100534c2015-09-07 15:51:23 -040036 deps = [
37 ':queues',
38 ],
39)
40
41queue_library(
42 name = 'queues',
43 srcs = [
44 'control_loops.q',
45 ],
46)
47
48cc_test(
49 name = 'position_sensor_sim_test',
50 srcs = [
51 'position_sensor_sim_test.cc',
52 ],
53 deps = [
54 ':queues',
55 ':position_sensor_sim',
Brian Silverman258b9172015-09-19 14:32:57 -040056 '//aos/testing:googletest',
Brian Silverman100534c2015-09-07 15:51:23 -040057 '//aos/common/logging',
58 ],
59)
60
61cc_library(
62 name = 'position_sensor_sim',
Brian Silverman33d0d6e2016-05-15 23:33:39 -070063 testonly = True,
Brian Silverman100534c2015-09-07 15:51:23 -040064 srcs = [
65 'position_sensor_sim.cc',
66 ],
67 hdrs = [
68 'position_sensor_sim.h',
69 ],
70 deps = [
71 ':queues',
72 ':gaussian_noise',
Austin Schuh55139fe2015-10-14 23:55:24 -070073 '//debian:libm',
Brian Silverman33d0d6e2016-05-15 23:33:39 -070074 '//aos/testing:random_seed',
Brian Silverman100534c2015-09-07 15:51:23 -040075 ],
76)
77
78cc_library(
79 name = 'gaussian_noise',
80 srcs = [
81 'gaussian_noise.cc',
82 ],
83 hdrs = [
84 'gaussian_noise.h',
85 ],
Brian Silvermanf1cff392015-10-11 19:36:18 -040086 deps = [
Austin Schuh55139fe2015-10-14 23:55:24 -070087 '//debian:libm',
Brian Silvermanf1cff392015-10-11 19:36:18 -040088 ],
Brian Silverman100534c2015-09-07 15:51:23 -040089)
90
91cc_library(
92 name = 'coerce_goal',
93 srcs = [
94 'coerce_goal.cc',
95 ],
96 hdrs = [
97 'coerce_goal.h',
98 ],
99 deps = [
100 '//third_party/eigen',
101 '//aos/common/controls:polytope',
Austin Schuh55139fe2015-10-14 23:55:24 -0700102 '//debian:libm',
Brian Silverman100534c2015-09-07 15:51:23 -0400103 ],
104)
105
106cc_library(
107 name = 'state_feedback_loop',
Austin Schuh044e18b2015-10-21 20:17:09 -0700108 hdrs = [
109 'state_feedback_loop.h',
110 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400111 deps = [
112 '//third_party/eigen',
Austin Schuh044e18b2015-10-21 20:17:09 -0700113 '//aos/common/logging',
114 '//aos/common:macros',
Brian Silverman100534c2015-09-07 15:51:23 -0400115 ],
116)
Brian Silverman2b1957a2016-02-14 20:29:57 -0500117
118cc_library(
119 name = 'simple_capped_state_feedback_loop',
120 hdrs = [
121 'simple_capped_state_feedback_loop.h',
122 ],
123 deps = [
124 '//third_party/eigen',
125 ':state_feedback_loop',
126 ],
127)
Austin Schuhacd335a2017-01-01 16:20:54 -0800128
129cc_library(
130 name = 'runge_kutta',
131 hdrs = [
132 'runge_kutta.h',
133 ],
134 deps = [
135 '//third_party/eigen',
136 ],
137)
138
139cc_test(
140 name = 'runge_kutta_test',
141 srcs = [
142 'runge_kutta_test.cc',
143 ],
144 deps = [
145 ':runge_kutta',
146 '//aos/testing:googletest',
147 '//third_party/eigen',
148 ],
149)
Austin Schuh473a5652017-02-05 01:30:42 -0800150
Austin Schuh3634ed32017-02-05 16:28:49 -0800151queue_library(
152 name = 'profiled_subsystem_queue',
153 srcs = [
154 'profiled_subsystem.q',
155 ],
156 deps = [
157 ':queues',
158 ],
159)
160
Austin Schuh473a5652017-02-05 01:30:42 -0800161cc_library(
162 name = 'profiled_subsystem',
163 srcs = [
164 'profiled_subsystem.cc',
165 ],
166 hdrs = [
167 'profiled_subsystem.h',
168 ],
169 deps = [
Austin Schuh3634ed32017-02-05 16:28:49 -0800170 ':profiled_subsystem_queue',
Austin Schuh473a5652017-02-05 01:30:42 -0800171 ':simple_capped_state_feedback_loop',
172 ':state_feedback_loop',
173 '//aos/common/controls:control_loop',
174 '//aos/common/util:trapezoid_profile',
175 '//frc971/zeroing:zeroing',
176 ],
177)