blob: 9dee424cfeda5c189fbf3dcff51e6c1aaccea4aa [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 ],
17)
18
19cc_test(
20 name = 'state_feedback_loop_test',
21 srcs = [
22 'state_feedback_loop_test.cc',
23 ],
24 deps = [
25 ':state_feedback_loop',
Brian Silverman258b9172015-09-19 14:32:57 -040026 '//aos/testing:googletest',
Brian Silverman100534c2015-09-07 15:51:23 -040027 ],
28)
29
30cc_library(
31 name = 'hall_effect_tracker',
Austin Schuh044e18b2015-10-21 20:17:09 -070032 hdrs = [
33 'hall_effect_tracker.h',
34 ],
Brian Silverman100534c2015-09-07 15:51:23 -040035 deps = [
36 ':queues',
37 ],
38)
39
40queue_library(
41 name = 'queues',
42 srcs = [
43 'control_loops.q',
44 ],
45)
46
47cc_test(
48 name = 'position_sensor_sim_test',
49 srcs = [
50 'position_sensor_sim_test.cc',
51 ],
52 deps = [
53 ':queues',
54 ':position_sensor_sim',
Brian Silverman258b9172015-09-19 14:32:57 -040055 '//aos/testing:googletest',
Brian Silverman100534c2015-09-07 15:51:23 -040056 '//aos/common/logging',
57 ],
58)
59
60cc_library(
61 name = 'position_sensor_sim',
Brian Silverman33d0d6e2016-05-15 23:33:39 -070062 testonly = True,
Brian Silverman100534c2015-09-07 15:51:23 -040063 srcs = [
64 'position_sensor_sim.cc',
65 ],
66 hdrs = [
67 'position_sensor_sim.h',
68 ],
69 deps = [
70 ':queues',
71 ':gaussian_noise',
Austin Schuh55139fe2015-10-14 23:55:24 -070072 '//debian:libm',
Brian Silverman33d0d6e2016-05-15 23:33:39 -070073 '//aos/testing:random_seed',
Brian Silverman100534c2015-09-07 15:51:23 -040074 ],
75)
76
77cc_library(
78 name = 'gaussian_noise',
79 srcs = [
80 'gaussian_noise.cc',
81 ],
82 hdrs = [
83 'gaussian_noise.h',
84 ],
Brian Silvermanf1cff392015-10-11 19:36:18 -040085 deps = [
Austin Schuh55139fe2015-10-14 23:55:24 -070086 '//debian:libm',
Brian Silvermanf1cff392015-10-11 19:36:18 -040087 ],
Brian Silverman100534c2015-09-07 15:51:23 -040088)
89
90cc_library(
91 name = 'coerce_goal',
92 srcs = [
93 'coerce_goal.cc',
94 ],
95 hdrs = [
96 'coerce_goal.h',
97 ],
98 deps = [
99 '//third_party/eigen',
100 '//aos/common/controls:polytope',
Austin Schuh55139fe2015-10-14 23:55:24 -0700101 '//debian:libm',
Brian Silverman100534c2015-09-07 15:51:23 -0400102 ],
103)
104
105cc_library(
106 name = 'state_feedback_loop',
Austin Schuh044e18b2015-10-21 20:17:09 -0700107 hdrs = [
108 'state_feedback_loop.h',
109 ],
Brian Silverman100534c2015-09-07 15:51:23 -0400110 deps = [
111 '//third_party/eigen',
Austin Schuh044e18b2015-10-21 20:17:09 -0700112 '//aos/common/logging',
113 '//aos/common:macros',
Brian Silverman100534c2015-09-07 15:51:23 -0400114 ],
115)
Brian Silverman2b1957a2016-02-14 20:29:57 -0500116
117cc_library(
118 name = 'simple_capped_state_feedback_loop',
119 hdrs = [
120 'simple_capped_state_feedback_loop.h',
121 ],
122 deps = [
123 '//third_party/eigen',
124 ':state_feedback_loop',
125 ],
126)