Add debouncer to y2018 superstructure
Change-Id: Id53ded166c5fc918357ec37d3e79fdc57ba71e1b
diff --git a/y2018/control_loops/superstructure/BUILD b/y2018/control_loops/superstructure/BUILD
index 1d52ab4..8fcba95 100644
--- a/y2018/control_loops/superstructure/BUILD
+++ b/y2018/control_loops/superstructure/BUILD
@@ -61,3 +61,24 @@
"//aos/linux_code:init",
],
)
+
+cc_library(
+ name = "debouncer",
+ hdrs = [
+ "debouncer.h",
+ ],
+ srcs = [
+ "debouncer.cc",
+ ],
+)
+
+cc_test(
+ name = "debouncer_test",
+ srcs = [
+ "debouncer_test.cc",
+ ],
+ deps = [
+ ":debouncer",
+ "//aos/testing:googletest",
+ ],
+)