Austin Schuh | bfb0412 | 2019-05-22 21:16:51 -0700 | [diff] [blame] | 1 | load("//aos/build:queues.bzl", "queue_library") |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 2 | |
| 3 | filegroup( |
Austin Schuh | bfb0412 | 2019-05-22 21:16:51 -0700 | [diff] [blame] | 4 | name = "binaries", |
| 5 | srcs = [ |
| 6 | ":autonomous_action", |
| 7 | ":shoot_action", |
| 8 | ], |
| 9 | visibility = ["//visibility:public"], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 10 | ) |
| 11 | |
Lee Mracek | 6821fe0 | 2018-11-01 17:27:30 -0400 | [diff] [blame] | 12 | filegroup( |
Austin Schuh | bfb0412 | 2019-05-22 21:16:51 -0700 | [diff] [blame] | 13 | name = "binaries.stripped", |
| 14 | srcs = [ |
| 15 | ":autonomous_action.stripped", |
| 16 | ":shoot_action.stripped", |
| 17 | ], |
| 18 | visibility = ["//visibility:public"], |
Lee Mracek | 6821fe0 | 2018-11-01 17:27:30 -0400 | [diff] [blame] | 19 | ) |
| 20 | |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 21 | queue_library( |
Austin Schuh | bfb0412 | 2019-05-22 21:16:51 -0700 | [diff] [blame] | 22 | name = "shoot_action_queue", |
| 23 | srcs = [ |
| 24 | "shoot_action.q", |
| 25 | ], |
| 26 | deps = [ |
| 27 | "//aos/actions:action_queue", |
| 28 | ], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 29 | ) |
| 30 | |
| 31 | cc_library( |
Austin Schuh | bfb0412 | 2019-05-22 21:16:51 -0700 | [diff] [blame] | 32 | name = "shoot_action_lib", |
| 33 | srcs = [ |
| 34 | "shoot_actor.cc", |
| 35 | ], |
| 36 | hdrs = [ |
| 37 | "shoot_actor.h", |
| 38 | ], |
| 39 | visibility = ["//visibility:public"], |
| 40 | deps = [ |
| 41 | ":shoot_action_queue", |
| 42 | "//aos/actions:action_lib", |
| 43 | "//aos/logging", |
| 44 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 45 | "//y2014:constants", |
| 46 | "//y2014/control_loops/claw:claw_queue", |
| 47 | "//y2014/control_loops/shooter:shooter_queue", |
| 48 | "//y2014/queues:profile_params", |
| 49 | ], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 50 | ) |
| 51 | |
| 52 | cc_binary( |
Austin Schuh | bfb0412 | 2019-05-22 21:16:51 -0700 | [diff] [blame] | 53 | name = "shoot_action", |
| 54 | srcs = [ |
| 55 | "shoot_actor_main.cc", |
| 56 | ], |
| 57 | deps = [ |
| 58 | ":shoot_action_lib", |
| 59 | ":shoot_action_queue", |
| 60 | "//aos:init", |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 61 | "//aos/events:shm-event-loop", |
Austin Schuh | bfb0412 | 2019-05-22 21:16:51 -0700 | [diff] [blame] | 62 | ], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 63 | ) |
| 64 | |
| 65 | cc_library( |
Austin Schuh | bfb0412 | 2019-05-22 21:16:51 -0700 | [diff] [blame] | 66 | name = "autonomous_action_lib", |
| 67 | srcs = [ |
| 68 | "autonomous_actor.cc", |
| 69 | ], |
| 70 | hdrs = [ |
| 71 | "autonomous_actor.h", |
| 72 | ], |
| 73 | deps = [ |
| 74 | "//aos/actions:action_lib", |
| 75 | "//aos/events:event-loop", |
| 76 | "//aos/logging", |
| 77 | "//aos/util:phased_loop", |
| 78 | "//frc971/autonomous:base_autonomous_actor", |
| 79 | "//frc971/control_loops/drivetrain:drivetrain_config", |
| 80 | "//frc971/control_loops/drivetrain:drivetrain_queue", |
| 81 | "//y2014/actors:shoot_action_lib", |
| 82 | "//y2014/control_loops/claw:claw_queue", |
| 83 | "//y2014/control_loops/drivetrain:drivetrain_base", |
| 84 | "//y2014/control_loops/shooter:shooter_queue", |
| 85 | "//y2014/queues:auto_mode", |
| 86 | "//y2014/queues:hot_goal", |
| 87 | "//y2014/queues:profile_params", |
| 88 | ], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 89 | ) |
| 90 | |
| 91 | cc_binary( |
Austin Schuh | bfb0412 | 2019-05-22 21:16:51 -0700 | [diff] [blame] | 92 | name = "autonomous_action", |
| 93 | srcs = [ |
| 94 | "autonomous_actor_main.cc", |
| 95 | ], |
| 96 | deps = [ |
| 97 | ":autonomous_action_lib", |
| 98 | "//aos:init", |
| 99 | "//aos/events:shm-event-loop", |
| 100 | "//frc971/autonomous:auto_queue", |
| 101 | ], |
Brian Silverman | 8c374e0 | 2015-09-06 23:02:21 -0400 | [diff] [blame] | 102 | ) |