Fix beambreak interpretation
Signed-off-by: Maxwell Henderson <mxwhenderson@gmail.com>
Change-Id: Ibd0d84ebe5762352cf5a6aabb74bd77c8e143cd8
diff --git a/y2023/vision/BUILD b/y2023/vision/BUILD
index e90b825..68ba833 100644
--- a/y2023/vision/BUILD
+++ b/y2023/vision/BUILD
@@ -1,4 +1,5 @@
load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
+load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library")
cc_binary(
name = "camera_reader",
@@ -239,3 +240,10 @@
target_compatible_with = ["@platforms//os:linux"],
visibility = ["//visibility:public"],
)
+
+flatbuffer_ts_library(
+ name = "game_pieces_ts_fbs",
+ srcs = ["game_pieces.fbs"],
+ target_compatible_with = ["@platforms//os:linux"],
+ visibility = ["//visibility:public"],
+)
diff --git a/y2023/vision/game_pieces.fbs b/y2023/vision/game_pieces.fbs
index e981712..aef52e4 100644
--- a/y2023/vision/game_pieces.fbs
+++ b/y2023/vision/game_pieces.fbs
@@ -2,9 +2,10 @@
// Object class.
enum Class : byte {
- CONE_DOWN,
- CONE_UP,
- CUBE
+ NONE = 0,
+ CONE_UP = 1,
+ CUBE = 2,
+ CONE_DOWN = 3,
}
// Bounding box dimensions and position.
@@ -26,4 +27,4 @@
game_pieces:[GamePiece] (id: 0);
}
-root_type GamePieces;
\ No newline at end of file
+root_type GamePieces;