Fix missing vars and catch bad shim (#1541)

I made a mistake when cherry-picking things into #1534. Fixing it also
prompted me to regenerate message things without thinking even though it
wasn't needed here but it helped me catch an issue with a bad shim. I
must not have saved it properly on my computer and missed it before
review.
This commit is contained in:
Lucien Morey
2024-11-10 09:32:35 +11:00
committed by GitHub
parent 14fcc5d485
commit d188c37466
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ class PhotonTrackedTarget:
minAreaRectCorners: list[TargetCorner] = field(default_factory=list[TargetCorner])
detectedCorners: list[TargetCorner] = field(default_factory=list[TargetCorner])
poseAmbiguity: float = 0.0
objDetectId: int = -1
objDetectConf: float = 0.0
def getYaw(self) -> float:
return self.yaw

View File

@@ -18,7 +18,7 @@ int32:
java_type: int
cpp_type: int32_t
java_decode_method: decodeInt
java_encode_shim: encodeBoolean
java_encode_shim: encodeInt
int64:
len: 8
java_type: long