Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions photon-lib/py/photonlibpy/targeting/photonPipelineResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@

@dataclass
class PhotonPipelineMetadata:
# Image capture and NT publish timestamp, in microseconds and in the coprocessor timebase. As
# reported by WPIUtilJNI::now.
# Image capture and NT publish timestamp, in microseconds and in the Time Sync Server's
# timebase (wpi::nt::Now). The robot shall run a server, so this is FPGA-relative on a real
# robot. NTDataPublisher applies the time-sync offset before publishing.
captureTimestampMicros: int = -1
publishTimestampMicros: int = -1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public double getLatencyMillis() {
}

/**
* The time that this image was captured, in the coprocessor's time base.
* The time that this image was captured, in microseconds and in the Time Sync Server's time base
* ({@code wpi::nt::Now}). The robot shall run a server, so this is FPGA-relative on a real robot.
* NTDataPublisher applies the time-sync offset before publishing.
*
* @return The time in microseconds
*/
Expand All @@ -67,7 +69,9 @@ public long getCaptureTimestampMicros() {
}

/**
* The time that this result was published to NT, in the coprocessor's time base.
* The time that this result was published to NT, in microseconds and in the Time Sync Server's
* time base ({@code wpi::nt::Now}). The robot shall run a server, so this is FPGA-relative on a
* real robot. NTDataPublisher applies the time-sync offset before publishing.
*
* @return The time in microseconds
*/
Expand Down
Loading