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 = [ |
Parker Schuh | 208a58d | 2017-04-12 20:51:38 -0700 | [diff] [blame] | 26 | ':vision_distance_average', |
Austin Schuh | 87c1063 | 2017-02-05 19:02:17 -0800 | [diff] [blame] | 27 | ':superstructure_queue', |
| 28 | '//aos/common/controls:control_loop', |
Austin Schuh | d5ccb86 | 2017-03-11 22:06:36 -0800 | [diff] [blame] | 29 | '//y2017/control_loops/superstructure/column', |
Austin Schuh | 87c1063 | 2017-02-05 19:02:17 -0800 | [diff] [blame] | 30 | '//y2017/control_loops/superstructure/hood', |
Adam Snaider | 79900c2 | 2017-02-08 20:23:15 -0800 | [diff] [blame] | 31 | '//y2017/control_loops/superstructure/intake', |
Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame] | 32 | '//y2017/control_loops/superstructure/shooter', |
Austin Schuh | 87c1063 | 2017-02-05 19:02:17 -0800 | [diff] [blame] | 33 | '//y2017:constants', |
| 34 | ], |
| 35 | ) |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 36 | |
| 37 | cc_test( |
| 38 | name = 'superstructure_lib_test', |
| 39 | srcs = [ |
| 40 | 'superstructure_lib_test.cc', |
| 41 | ], |
| 42 | deps = [ |
| 43 | ':superstructure_queue', |
| 44 | ':superstructure_lib', |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 45 | '//aos/common/controls:control_loop_test', |
| 46 | '//aos/common:math', |
Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame] | 47 | '//aos/common:queues', |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 48 | '//aos/common:time', |
Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame] | 49 | '//aos/testing:googletest', |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 50 | '//frc971/control_loops:position_sensor_sim', |
| 51 | '//frc971/control_loops:team_number_test_environment', |
Austin Schuh | d5ccb86 | 2017-03-11 22:06:36 -0800 | [diff] [blame] | 52 | '//y2017/control_loops/superstructure/column:column_plants', |
Adam Snaider | 79900c2 | 2017-02-08 20:23:15 -0800 | [diff] [blame] | 53 | '//y2017/control_loops/superstructure/hood:hood_plants', |
Adam Snaider | 79900c2 | 2017-02-08 20:23:15 -0800 | [diff] [blame] | 54 | '//y2017/control_loops/superstructure/intake:intake_plants', |
Tyler Chatow | 2737d2a | 2017-02-08 21:20:51 -0800 | [diff] [blame] | 55 | '//y2017/control_loops/superstructure/shooter:shooter_plants', |
Adam Snaider | cfe1306 | 2017-02-05 18:23:09 -0800 | [diff] [blame] | 56 | ], |
| 57 | ) |
Austin Schuh | 7b9a3ba | 2017-02-19 23:11:45 -0800 | [diff] [blame] | 58 | |
| 59 | cc_binary( |
| 60 | name = 'superstructure', |
| 61 | srcs = [ |
| 62 | 'superstructure_main.cc', |
| 63 | ], |
| 64 | deps = [ |
| 65 | '//aos/linux_code:init', |
| 66 | ':superstructure_lib', |
| 67 | ':superstructure_queue', |
| 68 | ], |
| 69 | ) |
Parker Schuh | fea4858 | 2017-03-11 20:15:32 -0800 | [diff] [blame] | 70 | |
| 71 | cc_library( |
| 72 | name = 'vision_time_adjuster', |
| 73 | hdrs = [ |
| 74 | 'vision_time_adjuster.h', |
| 75 | ], |
| 76 | srcs = [ |
| 77 | 'vision_time_adjuster.cc', |
| 78 | ], |
| 79 | deps = [ |
| 80 | ':superstructure_queue', |
| 81 | '//aos/common:ring_buffer', |
| 82 | '//frc971/control_loops/drivetrain:drivetrain_queue', |
Austin Schuh | ac76bb3 | 2017-03-22 22:34:26 -0700 | [diff] [blame] | 83 | '//y2017/control_loops/drivetrain:polydrivetrain_plants', |
Parker Schuh | fea4858 | 2017-03-11 20:15:32 -0800 | [diff] [blame] | 84 | '//y2017/vision:vision_queue', |
| 85 | ], |
| 86 | ) |
| 87 | |
| 88 | cc_test( |
| 89 | name = 'vision_time_adjuster_test', |
| 90 | srcs = [ |
| 91 | 'vision_time_adjuster_test.cc', |
| 92 | ], |
| 93 | deps = [ |
| 94 | ':vision_time_adjuster', |
| 95 | '//aos/common:time', |
| 96 | '//aos/testing:googletest', |
| 97 | '//aos/testing:test_shm', |
| 98 | ], |
| 99 | ) |
Parker Schuh | 208a58d | 2017-04-12 20:51:38 -0700 | [diff] [blame] | 100 | |
| 101 | cc_library( |
| 102 | name = 'vision_distance_average', |
| 103 | hdrs = [ |
| 104 | 'vision_distance_average.h', |
| 105 | ], |
| 106 | deps = [ |
| 107 | '//aos/common:time', |
| 108 | '//aos/common:ring_buffer', |
| 109 | '//y2017/vision:vision_queue', |
| 110 | ], |
| 111 | ) |
| 112 | |
| 113 | cc_test( |
| 114 | name = 'vision_distance_average_test', |
| 115 | srcs = [ |
| 116 | 'vision_distance_average_test.cc', |
| 117 | ], |
| 118 | deps = [ |
| 119 | ':vision_distance_average', |
| 120 | '//aos/common:time', |
| 121 | '//aos/testing:googletest', |
| 122 | ], |
| 123 | ) |