blob: 8704cf580d28144c2d45340363a1ba89f6b0251a [file] [log] [blame]
Austin Schuh55934032017-03-11 12:45:27 -08001genrule(
2 name = 'genrule_column',
3 cmd = '$(location //y2017/control_loops/python:column) $(OUTS)',
4 tools = [
5 '//y2017/control_loops/python:column',
6 ],
7 outs = [
8 'column_plant.h',
9 'column_plant.cc',
10 'column_integral_plant.h',
11 'column_integral_plant.cc',
Austin Schuh55934032017-03-11 12:45:27 -080012 'stuck_column_integral_plant.h',
Austin Schuhd5ccb862017-03-11 22:06:36 -080013 'stuck_column_integral_plant.cc',
Austin Schuh55934032017-03-11 12:45:27 -080014 ],
15)
16
17cc_library(
18 name = 'column_plants',
19 visibility = ['//visibility:public'],
20 srcs = [
21 'column_plant.cc',
22 'column_integral_plant.cc',
Austin Schuhd5ccb862017-03-11 22:06:36 -080023 'stuck_column_integral_plant.cc',
Austin Schuh55934032017-03-11 12:45:27 -080024 ],
25 hdrs = [
26 'column_plant.h',
27 'column_integral_plant.h',
Austin Schuhd5ccb862017-03-11 22:06:36 -080028 'stuck_column_integral_plant.h',
Austin Schuh55934032017-03-11 12:45:27 -080029 ],
30 deps = [
31 '//frc971/control_loops:state_feedback_loop',
32 ],
33)
34
35cc_library(
Austin Schuhd5ccb862017-03-11 22:06:36 -080036 name = 'column',
37 visibility = ['//visibility:public'],
38 srcs = [
39 'column.cc',
40 ],
41 hdrs = [
42 'column.h',
43 ],
44 deps = [
45 ':column_plants',
46 ':column_zeroing',
47 '//aos/common/controls:control_loop',
48 '//aos/common:math',
49 '//frc971/control_loops:profiled_subsystem',
50 '//y2017/control_loops/superstructure/intake:intake',
51 '//y2017/control_loops/superstructure:superstructure_queue',
52 '//y2017:constants',
53 ],
54)
55
56cc_library(
Austin Schuh55934032017-03-11 12:45:27 -080057 name = 'column_zeroing',
58 srcs = [
59 'column_zeroing.cc',
60 ],
61 hdrs = [
62 'column_zeroing.h',
63 ],
64 deps = [
65 '//frc971/control_loops:queues',
66 '//frc971/zeroing:wrap',
67 '//frc971/zeroing:zeroing',
68 '//frc971:constants',
69 '//y2017/control_loops/superstructure:superstructure_queue',
70 '//y2017:constants',
71 ],
72)
73
74cc_test(
75 name = 'column_zeroing_test',
76 srcs = [
77 'column_zeroing_test.cc',
78 ],
79 deps = [
80 ':column_zeroing',
81 '//aos/testing:test_shm',
82 '//frc971/control_loops:position_sensor_sim',
83 '//frc971/control_loops:team_number_test_environment',
84 '//y2017/control_loops/superstructure:superstructure_queue',
85 '//y2017:constants',
86 ],
87)