Skip to content

Commit

Permalink
Convert limelight timestamp to the correct time unit
Browse files Browse the repository at this point in the history
  • Loading branch information
ced4rtree authored and jwbonner committed Dec 19, 2024
1 parent fd77d49 commit bac2037
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void updateInputs(VisionIOInputs inputs) {
poseObservations.add(
new PoseObservation(
// Timestamp, based on server timestamp of publish and latency
rawSample.timestamp * 1.0e-9 - rawSample.value[7] * 1.0e-3,
rawSample.timestamp * 1.0e-6 - rawSample.value[7] * 1.0e-3,

// 3D pose estimate
parsePose(rawSample.value),
Expand All @@ -109,7 +109,7 @@ public void updateInputs(VisionIOInputs inputs) {
poseObservations.add(
new PoseObservation(
// Timestamp, based on server timestamp of publish and latency
rawSample.timestamp * 1.0e-9 - rawSample.value[7] * 1.0e-3,
rawSample.timestamp * 1.0e-6 - rawSample.value[7] * 1.0e-3,

// 3D pose estimate
parsePose(rawSample.value),
Expand Down

0 comments on commit bac2037

Please sign in to comment.