Skip to content

Commit

Permalink
Add some comments?
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 8, 2023
1 parent 2aa95e3 commit 63279ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class MultiTargetPNPResults {
// Seeing 32 apriltags at once seems like a sane limit
private static final int MAX_IDS = 32;
// pnpresult + MAX_IDS possible targets (arbitrary upper limit that should never be hit, ideally)
public static final int PACK_SIZE_BYTES = PNPResults.PACK_SIZE_BYTES + Short.BYTES * MAX_IDS;
public static final int PACK_SIZE_BYTES = PNPResults.PACK_SIZE_BYTES + (Short.BYTES * MAX_IDS);

public PNPResults estimatedPose = new PNPResults();
public List<Integer> fiducialIDsUsed = List.of();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public PhotonPipelineResult(
*/
public int getPacketSize() {
return targets.size() * PhotonTrackedTarget.PACK_SIZE_BYTES
+ 8
+ 2
+ MultiTargetPNPResults.PACK_SIZE_BYTES;
+ 8 // latency
+ MultiTargetPNPResults.PACK_SIZE_BYTES
+ 1; // target count
}

/**
Expand Down

0 comments on commit 63279ef

Please sign in to comment.