Add a program which returns 0 if it sees 50 a's, and 1 elsewhise
This gives us an emergency out if the teensy code isn't starting.
Change-Id: I01c56f09dfc4deae523ae85516a6bd66708b6641
diff --git a/y2019/vision/BUILD b/y2019/vision/BUILD
index 7300850..0221254 100644
--- a/y2019/vision/BUILD
+++ b/y2019/vision/BUILD
@@ -11,8 +11,8 @@
cc_library(
name = "constants",
- hdrs = ["constants.h"],
srcs = ["constants.cc"],
+ hdrs = ["constants.h"],
)
cc_library(
@@ -70,40 +70,53 @@
"//y2019/jevois:serial",
"//y2019/jevois:structures",
"//y2019/jevois:uart",
- "//y2019/jevois/camera:reader",
"//y2019/jevois/camera:image_stream",
+ "//y2019/jevois/camera:reader",
"@com_google_ceres_solver//:ceres",
],
)
cc_binary(
+ name = "serial_waiter",
+ srcs = ["serial_waiter.cc"],
+ restricted_to = VISION_TARGETS,
+ deps = [
+ "//aos/time",
+ "//y2019/jevois:serial",
+ ],
+)
+
+cc_binary(
name = "debug_serial",
srcs = ["debug_serial.cc"],
deps = [
+ "//aos/logging",
+ "//aos/logging:implementations",
"//y2019/jevois:serial",
"//y2019/jevois:structures",
"//y2019/jevois:uart",
- "//aos/logging",
- "//aos/logging:implementations",
],
)
cc_binary(
name = "global_calibration",
- srcs = ["global_calibration.cc", "constants_formatting.cc"],
- deps = [
- ":target_finder",
- "//aos/logging",
- "//aos/logging:implementations",
- "//aos/vision/blob:find_blob",
- "//aos/vision/blob:codec",
- "//aos/vision/events:epoll_events",
- "//aos/vision/events:socket_types",
- "//aos/vision/events:udp",
- "//aos/vision/image:image_stream",
- "//aos/vision/image:image_dataset",
- "//aos/vision/image:reader",
- "@com_google_ceres_solver//:ceres",
+ srcs = [
+ "constants_formatting.cc",
+ "global_calibration.cc",
],
restricted_to = VISION_TARGETS,
+ deps = [
+ ":target_finder",
+ "//aos/logging",
+ "//aos/logging:implementations",
+ "//aos/vision/blob:codec",
+ "//aos/vision/blob:find_blob",
+ "//aos/vision/events:epoll_events",
+ "//aos/vision/events:socket_types",
+ "//aos/vision/events:udp",
+ "//aos/vision/image:image_dataset",
+ "//aos/vision/image:image_stream",
+ "//aos/vision/image:reader",
+ "@com_google_ceres_solver//:ceres",
+ ],
)