blob: c611d32572dd8df17b8c3a64a1929336eccc8330 [file] [log] [blame]
Brian Silverman100534c2015-09-07 15:51:23 -04001package(default_visibility = ['//visibility:public'])
2
3load('/aos/build/queues', 'queue_library')
4
5queue_library(
6 name = 'logging_queue',
7 srcs = [
8 'logging.q',
9 ],
10)
11
12cc_library(
13 name = 'encoder_and_potentiometer',
14 srcs = [
15 'encoder_and_potentiometer.cc',
16 ],
17 hdrs = [
18 'encoder_and_potentiometer.h',
19 ],
20 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -040021 '//aos/externals:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040022 ':dma_edge_counting',
23 '//aos/linux_code:init',
24 '//aos/common/logging',
25 '//aos/linux_code/ipc_lib:mutex',
26 ],
27)
28
29cc_library(
30 name = 'dma_edge_counting',
31 srcs = [
32 'dma_edge_counting.cc',
33 ],
34 hdrs = [
35 'dma_edge_counting.h',
36 ],
37 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -040038 '//aos/externals:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040039 '//aos/common/logging',
40 ':hall_effect',
41 ],
42)
43
44cc_library(
45 name = 'interrupt_edge_counting',
46 srcs = [
47 'interrupt_edge_counting.cc',
48 ],
49 hdrs = [
50 'interrupt_edge_counting.h',
51 ],
52 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -040053 '//aos/externals:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040054 '//aos/common/logging',
55 '//aos/common:stl_mutex',
56 '//aos/common:time',
57 '//aos/linux_code:init',
58 ],
59)
60
61cc_library(
62 name = 'buffered_pcm',
63 srcs = [
64 'buffered_solenoid.cc',
65 'buffered_pcm.cc',
66 ],
67 hdrs = [
68 'buffered_solenoid.h',
69 'buffered_pcm.h',
70 ],
71 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -040072 '//aos/externals:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040073 '//aos/common/logging',
74 ],
75)
76
77cc_library(
78 name = 'gyro_interface',
79 srcs = [
80 'gyro_interface.cc',
81 ],
82 hdrs = [
83 'gyro_interface.h',
84 ],
85 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -040086 '//aos/externals:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -040087 '//aos/common/logging',
88 ],
89)
90
91cc_library(
92 name = 'gyro_sender',
93 srcs = [
94 'gyro_sender.cc',
95 ],
96 hdrs = [
97 'gyro_sender.h',
98 ],
99 deps = [
100 '//frc971/queues:gyro',
101 ':gyro_interface',
102 '//aos/common/logging',
103 '//aos/common/logging:queue_logging',
104 '//aos/common/util:phased_loop',
105 '//aos/common/messages:robot_state',
106 '//aos/linux_code:init',
107 '//aos/common:time',
108 ],
109)
110
111cc_library(
112 name = 'loop_output_handler',
113 srcs = [
114 'loop_output_handler.cc',
115 ],
116 hdrs = [
117 'loop_output_handler.h',
118 ],
119 deps = [
120 '//aos/common:scoped_fd',
121 '//aos/linux_code:init',
122 '//aos/common:time',
123 '//aos/common/util:log_interval',
124 '//aos/common/messages:robot_state',
125 ],
126)
127
128cc_library(
129 name = 'joystick_sender',
130 srcs = [
131 'joystick_sender.cc',
132 ],
133 hdrs = [
134 'joystick_sender.h',
135 ],
136 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -0400137 '//aos/externals:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -0400138 '//aos/common/messages:robot_state',
139 '//aos/linux_code:init',
140 '//aos/common/network:team_number',
141 '//aos/common/logging:queue_logging',
142 ],
143)
144
145cc_library(
146 name = 'hall_effect',
147 deps = [
Brian Silverman258b9172015-09-19 14:32:57 -0400148 '//aos/externals:wpilib',
Brian Silverman100534c2015-09-07 15:51:23 -0400149 ],
150)