blob: 9535489f15493197edfcec64c376b3e938d92365 [file] [log] [blame]
Austin Schuh55a13dc2019-01-27 22:39:03 -08001package(default_visibility = ["//visibility:public"])
Comran Morshed41ed7c22015-11-04 21:03:37 +00002
Austin Schuh55a13dc2019-01-27 22:39:03 -08003load("//aos/build:queues.bzl", "queue_library")
Comran Morshed41ed7c22015-11-04 21:03:37 +00004
5queue_library(
Austin Schuh55a13dc2019-01-27 22:39:03 -08006 name = "rollers_queue",
7 srcs = [
8 "rollers.q",
9 ],
10 deps = [
11 "//aos/controls:control_loop_queues",
12 "//frc971/control_loops:queues",
13 ],
Comran Morshed41ed7c22015-11-04 21:03:37 +000014)
15
16cc_library(
Austin Schuh55a13dc2019-01-27 22:39:03 -080017 name = "rollers_lib",
18 srcs = [
19 "rollers.cc",
20 ],
21 hdrs = [
22 "rollers.h",
23 ],
24 deps = [
25 ":rollers_queue",
26 "//aos/controls:control_loop",
27 "//aos/logging",
28 ],
Comran Morshed41ed7c22015-11-04 21:03:37 +000029)
30
31cc_binary(
Austin Schuh55a13dc2019-01-27 22:39:03 -080032 name = "rollers",
33 srcs = [
34 "rollers_main.cc",
35 ],
36 deps = [
37 ":rollers_lib",
38 "//aos:init",
39 "//aos/events:shm-event-loop",
40 ],
Comran Morshed41ed7c22015-11-04 21:03:37 +000041)