From 0ae2b496a85b75516e50065f0336cf5603876cef Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 30 Sep 2023 14:48:34 -0400 Subject: [PATCH] ????? --- .../src/main/native/cpp/photonlib/MultiTargetPNPResult.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/photon-lib/src/main/native/cpp/photonlib/MultiTargetPNPResult.cpp b/photon-lib/src/main/native/cpp/photonlib/MultiTargetPNPResult.cpp index 70ffe8f903..a298f995a2 100644 --- a/photon-lib/src/main/native/cpp/photonlib/MultiTargetPNPResult.cpp +++ b/photon-lib/src/main/native/cpp/photonlib/MultiTargetPNPResult.cpp @@ -45,7 +45,7 @@ Packet& operator>>(Packet& packet, MultiTargetPnpResult& target) { target.fiducialIdsUsed.clear(); for (size_t i = 0; i < target.fiducialIdsUsed.capacity(); i++) { - int8_t id; + int8_t id = 0; packet >> id; if (id > -128) { @@ -93,7 +93,7 @@ Packet& operator>>(Packet& packet, frc::Transform3d& transform) { return packet; } -Packet& operator<<(Packet& packet, const PNPResults& result) { +Packet& operator<<(Packet& packet, PNPResults const & result) { packet << result.isValid << result.best << result.alt << result.bestReprojectionErr << result.altReprojectionErr << result.ambiguity;