Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Mar 27, 2024
1 parent 2178908 commit 947dcba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void encode(int src) {
/**
* Encodes the double into the packet.
*
* @param src The double to encode.
* @param data The double to encode.
*/
public void encode(long data) {
packetData[writePos++] = (byte) ((data >> 56) & 0xff);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ public class PhotonPipelineResult implements ProtobufSerializable {

// Image capture and NT publish timestamp, in microseconds and in the coprocessor timebase. As
// reported by WPIUtilJNI::now.
private final long captureTimestampMicros;
private final long publishTimestampMicros;
private long captureTimestampMicros = -1;
private long publishTimestampMicros = -1;

// Mirror of the heartbeat entry -- monotonically increasing
private final long sequenceID;
private long sequenceID = -1;

// Targets to store.
public final List<PhotonTrackedTarget> targets = new ArrayList<>();
Expand All @@ -51,13 +51,15 @@ public PhotonPipelineResult() {}
/**
* Constructs a pipeline result.
*
* @param latencyMillis The latency in the pipeline.
* @param sequenceID The number of frames processed by this camera since boot
* @param captureTimestamp The time, in uS in the coprocessor's timebase, that the coprocessor captured the image this result contains the targeting info of
* @param publishTimestamp The time, in uS in the coprocessor's timebase, that the coprocessor published targeting info
* @param targets The list of targets identified by the pipeline.
*/
public PhotonPipelineResult(
long sequenceID,
long captureTimestamp,
long publishTimestamp,
long sequenceID,
List<PhotonTrackedTarget> targets) {
this.captureTimestampMicros = captureTimestamp;
this.publishTimestampMicros = publishTimestamp;
Expand All @@ -68,7 +70,9 @@ public PhotonPipelineResult(
/**
* Constructs a pipeline result.
*
* @param latencyMillis The latency in the pipeline.
* @param sequenceID The number of frames processed by this camera since boot
* @param captureTimestamp The time, in uS in the coprocessor's timebase, that the coprocessor captured the image this result contains the targeting info of
* @param publishTimestamp The time, in uS in the coprocessor's timebase, that the coprocessor published targeting info
* @param targets The list of targets identified by the pipeline.
* @param result Result from multi-target PNP.
*/
Expand Down

0 comments on commit 947dcba

Please sign in to comment.