blob: aba74b9f5accf2d2cdaaa0cc03726d5fbb7b48e0 [file] [log] [blame]
Brian Silverman8c374e02015-09-06 23:02:21 -04001package(default_visibility = ['//visibility:public'])
2
Austin Schuhf0736512015-09-07 01:22:16 -07003load('/aos/build/queues', 'queue_library')
Brian Silverman8c374e02015-09-06 23:02:21 -04004
5cc_binary(
6 name = 'replay_shooter',
7 srcs = [
8 'replay_shooter.cc',
9 ],
10 deps = [
11 ':shooter_queue',
12 '//aos/common/controls:replay_control_loop',
13 '//aos/linux_code:init',
14 ],
15)
16
17queue_library(
18 name = 'shooter_queue',
19 srcs = [
20 'shooter.q',
21 ],
Brian Silverman100534c2015-09-07 15:51:23 -040022 deps = [
23 '//aos/common/controls:control_loop_queues',
24 '//frc971/control_loops:queues',
25 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040026)
27
28cc_library(
29 name = 'shooter_lib',
30 srcs = [
31 'shooter.cc',
32 'shooter_motor_plant.cc',
33 'unaugmented_shooter_motor_plant.cc',
34 ],
Brian Silverman100534c2015-09-07 15:51:23 -040035 hdrs = [
36 'shooter.h',
37 'shooter_motor_plant.h',
38 'unaugmented_shooter_motor_plant.h',
39 ],
Brian Silverman8c374e02015-09-06 23:02:21 -040040 deps = [
41 ':shooter_queue',
42 '//aos/common/controls:control_loop',
43 '//y2014:constants',
44 '//frc971/control_loops:state_feedback_loop',
45 '//aos/common/logging:queue_logging',
46 ],
47)
48
Brian Silverman100534c2015-09-07 15:51:23 -040049cc_test(
Brian Silverman8c374e02015-09-06 23:02:21 -040050 name = 'shooter_lib_test',
51 srcs = [
52 'shooter_lib_test.cc',
53 ],
54 deps = [
55 '//third_party/gtest',
56 ':shooter_queue',
57 ':shooter_lib',
58 '//aos/common/controls:control_loop_test',
59 '//frc971/control_loops:state_feedback_loop',
60 ],
61)
62
63cc_binary(
64 name = 'shooter',
65 srcs = [
66 'shooter_main.cc',
67 ],
68 deps = [
69 '//aos/linux_code:init',
70 ':shooter_lib',
71 ],
72)