diff --git a/photon-targeting/src/test/native/cpp/PacketTest.cpp b/photon-targeting/src/test/native/cpp/PacketTest.cpp index 1094a3783f..14e18599ac 100644 --- a/photon-targeting/src/test/native/cpp/PacketTest.cpp +++ b/photon-targeting/src/test/native/cpp/PacketTest.cpp @@ -71,7 +71,7 @@ TEST(PacketTest, PhotonTrackedTarget) { } TEST(PacketTest, PhotonPipelineResult) { - photon::PhotonPipelineResult result{1_s, {}}; + photon::PhotonPipelineResult result{0, 0_s, 1_s, {}}; photon::Packet p; p << result; @@ -109,7 +109,7 @@ TEST(PacketTest, PhotonPipelineResult) { {std::pair{1, 2}, std::pair{3, 4}, std::pair{5, 6}, std::pair{7, 8}}}}; - photon::PhotonPipelineResult result2{2_s, targets}; + photon::PhotonPipelineResult result2{0, 0_s, 2_s, targets}; photon::Packet p2; p2 << result2; diff --git a/photon-targeting/src/test/native/cpp/targeting/proto/PhotonPipelineResultProtoTest.cpp b/photon-targeting/src/test/native/cpp/targeting/proto/PhotonPipelineResultProtoTest.cpp index 65c60f0d13..5b46962c69 100644 --- a/photon-targeting/src/test/native/cpp/targeting/proto/PhotonPipelineResultProtoTest.cpp +++ b/photon-targeting/src/test/native/cpp/targeting/proto/PhotonPipelineResultProtoTest.cpp @@ -21,7 +21,7 @@ #include "photon/targeting/proto/PhotonPipelineResultProto.h" TEST(PhotonPipelineResultTest, Roundtrip) { - photon::PhotonPipelineResult result{12_ms, {}}; + photon::PhotonPipelineResult result{0, 0_s, 12_ms, {}}; google::protobuf::Arena arena; google::protobuf::Message* proto = @@ -62,7 +62,7 @@ TEST(PhotonPipelineResultTest, Roundtrip) { {std::pair{1, 2}, std::pair{3, 4}, std::pair{5, 6}, std::pair{7, 8}}}}; - photon::PhotonPipelineResult result2{12_ms, targets}; + photon::PhotonPipelineResult result2{0, 0_s, 12_ms, targets}; proto = wpi::Protobuf::New(&arena); wpi::Protobuf::Pack(proto, result2); @@ -84,7 +84,7 @@ TEST(PhotonPipelineResultTest, Roundtrip) { photon::MultiTargetPNPResult multitagRes{pnpRes, {1, 2, 3, 4}}; - photon::PhotonPipelineResult result3{12_ms, targets, multitagRes}; + photon::PhotonPipelineResult result3{0, 0_s, 12_ms, targets, multitagRes}; proto = wpi::Protobuf::New(&arena); wpi::Protobuf::Pack(proto, result3);