blob: 694dd47eadcd518f369f6c50dddd6b995a379512 [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',
John Park33858a32018-09-28 23:05:48 -070047 '//aos/controls:control_loop',
48 '//aos:math',
Austin Schuhd5ccb862017-03-11 22:06:36 -080049 '//frc971/control_loops:profiled_subsystem',
50 '//y2017/control_loops/superstructure/intake:intake',
51 '//y2017/control_loops/superstructure:superstructure_queue',
Austin Schuhac76bb32017-03-22 22:34:26 -070052 '//y2017/control_loops/superstructure:vision_time_adjuster',
Austin Schuhd5ccb862017-03-11 22:06:36 -080053 '//y2017:constants',
54 ],
55)
56
57cc_library(
Austin Schuh55934032017-03-11 12:45:27 -080058 name = 'column_zeroing',
59 srcs = [
60 'column_zeroing.cc',
61 ],
62 hdrs = [
63 'column_zeroing.h',
64 ],
65 deps = [
66 '//frc971/control_loops:queues',
67 '//frc971/zeroing:wrap',
68 '//frc971/zeroing:zeroing',
69 '//frc971:constants',
70 '//y2017/control_loops/superstructure:superstructure_queue',
71 '//y2017:constants',
72 ],
73)
74
75cc_test(
76 name = 'column_zeroing_test',
77 srcs = [
78 'column_zeroing_test.cc',
79 ],
80 deps = [
81 ':column_zeroing',
82 '//aos/testing:test_shm',
83 '//frc971/control_loops:position_sensor_sim',
84 '//frc971/control_loops:team_number_test_environment',
85 '//y2017/control_loops/superstructure:superstructure_queue',
86 '//y2017:constants',
87 ],
88)