Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Mar 28, 2024
1 parent 0a57b37 commit c6f170f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions photon-targeting/src/test/native/cpp/PacketTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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<photon::PhotonPipelineResult>::New(&arena);
wpi::Protobuf<photon::PhotonPipelineResult>::Pack(proto, result2);
Expand All @@ -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<photon::PhotonPipelineResult>::New(&arena);
wpi::Protobuf<photon::PhotonPipelineResult>::Pack(proto, result3);
Expand Down

0 comments on commit c6f170f

Please sign in to comment.