blob: 10b726f63b5e5fd1c98d0f4b34b09492fd1b7b10 [file] [log] [blame]
Austin Schuh48d60c12017-02-04 21:58:58 -08001genrule(
2 name = 'genrule_indexer',
Austin Schuh48d60c12017-02-04 21:58:58 -08003 cmd = '$(location //y2017/control_loops/python:indexer) $(OUTS)',
4 tools = [
5 '//y2017/control_loops/python:indexer',
6 ],
7 outs = [
8 'indexer_plant.h',
9 'indexer_plant.cc',
10 'indexer_integral_plant.h',
11 'indexer_integral_plant.cc',
Austin Schuhcd3237a2017-02-18 14:19:26 -080012 'stuck_indexer_integral_plant.h',
13 'stuck_indexer_integral_plant.cc',
Austin Schuh48d60c12017-02-04 21:58:58 -080014 ],
15)
16
17cc_library(
18 name = 'indexer_plants',
Brian Silverman052e69d2017-02-12 16:19:55 -080019 visibility = ['//visibility:public'],
Austin Schuh48d60c12017-02-04 21:58:58 -080020 srcs = [
21 'indexer_plant.cc',
22 'indexer_integral_plant.cc',
Austin Schuhcd3237a2017-02-18 14:19:26 -080023 'stuck_indexer_integral_plant.cc',
Austin Schuh48d60c12017-02-04 21:58:58 -080024 ],
25 hdrs = [
26 'indexer_plant.h',
27 'indexer_integral_plant.h',
Austin Schuhcd3237a2017-02-18 14:19:26 -080028 'stuck_indexer_integral_plant.h',
Austin Schuh48d60c12017-02-04 21:58:58 -080029 ],
30 deps = [
31 '//frc971/control_loops:state_feedback_loop',
32 ],
33)
Austin Schuhcd3237a2017-02-18 14:19:26 -080034
35cc_library(
36 name = 'indexer',
37 visibility = ['//visibility:public'],
38 srcs = [
39 'indexer.cc',
40 ],
41 hdrs = [
42 'indexer.h',
43 ],
44 deps = [
45 ':indexer_plants',
46 '//aos/common/controls:control_loop',
47 '//aos/common:math',
48 '//y2017/control_loops/superstructure:superstructure_queue',
49 ],
50)