blob: 7272d480e5bfd009fd05ab91588eed2654cdb66d [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 = [
Austin Schuh3ad5ed82017-02-25 21:36:19 -0800112 '//aos/common/controls:control_loop',
Austin Schuh044e18b2015-10-21 20:17:09 -0700113 '//aos/common/logging',
114 '//aos/common:macros',
Austin Schuh3ad5ed82017-02-25 21:36:19 -0800115 '//third_party/eigen',
Brian Silverman100534c2015-09-07 15:51:23 -0400116 ],
117)
Brian Silverman2b1957a2016-02-14 20:29:57 -0500118
119cc_library(
120 name = 'simple_capped_state_feedback_loop',
121 hdrs = [
122 'simple_capped_state_feedback_loop.h',
123 ],
124 deps = [
125 '//third_party/eigen',
126 ':state_feedback_loop',
127 ],
128)
Austin Schuhacd335a2017-01-01 16:20:54 -0800129
130cc_library(
131 name = 'runge_kutta',
132 hdrs = [
133 'runge_kutta.h',
134 ],
135 deps = [
136 '//third_party/eigen',
137 ],
138)
139
140cc_test(
141 name = 'runge_kutta_test',
142 srcs = [
143 'runge_kutta_test.cc',
144 ],
145 deps = [
146 ':runge_kutta',
147 '//aos/testing:googletest',
148 '//third_party/eigen',
149 ],
150)
Austin Schuh473a5652017-02-05 01:30:42 -0800151
Austin Schuh3634ed32017-02-05 16:28:49 -0800152queue_library(
153 name = 'profiled_subsystem_queue',
154 srcs = [
155 'profiled_subsystem.q',
156 ],
157 deps = [
158 ':queues',
159 ],
160)
161
Austin Schuh473a5652017-02-05 01:30:42 -0800162cc_library(
163 name = 'profiled_subsystem',
164 srcs = [
165 'profiled_subsystem.cc',
166 ],
167 hdrs = [
168 'profiled_subsystem.h',
169 ],
170 deps = [
Austin Schuh3634ed32017-02-05 16:28:49 -0800171 ':profiled_subsystem_queue',
Austin Schuh473a5652017-02-05 01:30:42 -0800172 ':simple_capped_state_feedback_loop',
173 ':state_feedback_loop',
174 '//aos/common/controls:control_loop',
175 '//aos/common/util:trapezoid_profile',
176 '//frc971/zeroing:zeroing',
177 ],
178)