Diana Vandenberg | 69899ed | 2017-01-28 16:57:54 -0800 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | load('/aos/build/queues', 'queue_library') |
| 4 | |
| 5 | queue_library( |
Campbell Crowley | 7502629 | 2017-02-04 21:46:19 -0800 | [diff] [blame] | 6 | name = 'superstructure_queue', |
Diana Vandenberg | 69899ed | 2017-01-28 16:57:54 -0800 | [diff] [blame] | 7 | srcs = [ |
Campbell Crowley | 7502629 | 2017-02-04 21:46:19 -0800 | [diff] [blame] | 8 | 'superstructure.q', |
Diana Vandenberg | 69899ed | 2017-01-28 16:57:54 -0800 | [diff] [blame] | 9 | ], |
| 10 | deps = [ |
| 11 | '//aos/common/controls:control_loop_queues', |
Austin Schuh | 3634ed3 | 2017-02-05 16:28:49 -0800 | [diff] [blame] | 12 | '//frc971/control_loops:profiled_subsystem_queue', |
Diana Vandenberg | 69899ed | 2017-01-28 16:57:54 -0800 | [diff] [blame] | 13 | '//frc971/control_loops:queues', |
| 14 | ], |
| 15 | ) |
Austin Schuh | 87c1063 | 2017-02-05 19:02:17 -0800 | [diff] [blame] | 16 | |
| 17 | cc_library( |
| 18 | name = 'superstructure_lib', |
| 19 | srcs = [ |
| 20 | 'superstructure.cc', |
| 21 | ], |
| 22 | hdrs = [ |
| 23 | 'superstructure.h', |
| 24 | ], |
| 25 | deps = [ |
| 26 | ':superstructure_queue', |
| 27 | '//aos/common/controls:control_loop', |
| 28 | '//y2017/control_loops/superstructure/hood', |
Adam Snaider | 79900c2 | 2017-02-08 20:23:15 -0800 | [diff] [blame] | 29 | '//y2017/control_loops/superstructure/turret', |
| 30 | '//y2017/control_loops/superstructure/intake', |
Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame] | 31 | '//y2017/control_loops/superstructure/shooter', |
Austin Schuh | 87c1063 | 2017-02-05 19:02:17 -0800 | [diff] [blame] | 32 | '//y2017:constants', |
| 33 | ], |
| 34 | ) |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 35 | |
| 36 | cc_test( |
| 37 | name = 'superstructure_lib_test', |
| 38 | srcs = [ |
| 39 | 'superstructure_lib_test.cc', |
| 40 | ], |
| 41 | deps = [ |
| 42 | ':superstructure_queue', |
| 43 | ':superstructure_lib', |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 44 | '//aos/common/controls:control_loop_test', |
| 45 | '//aos/common:math', |
Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame] | 46 | '//aos/common:queues', |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 47 | '//aos/common:time', |
Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame] | 48 | '//aos/testing:googletest', |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 49 | '//frc971/control_loops:position_sensor_sim', |
| 50 | '//frc971/control_loops:team_number_test_environment', |
Adam Snaider | 79900c2 | 2017-02-08 20:23:15 -0800 | [diff] [blame] | 51 | '//y2017/control_loops/superstructure/hood:hood_plants', |
Adam Snaider | 79900c2 | 2017-02-08 20:23:15 -0800 | [diff] [blame] | 52 | '//y2017/control_loops/superstructure/intake:intake_plants', |
Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame] | 53 | '//y2017/control_loops/superstructure/shooter:shooter_plants', |
| 54 | '//y2017/control_loops/superstructure/turret:turret_plants', |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 55 | ], |
| 56 | ) |