photonvision icon indicating copy to clipboard operation
photonvision copied to clipboard

Create timesync JNI for testing client

Open mcm001 opened this issue 1 year ago • 4 comments

image

Creates new timesync client + server + docs. By default. photoncamera will create a new server when instantiated. the coprocessor will use the NT client/server mode to switch the TSP role.

We've chosen to do this over NTP or PTP because we want to syncronize against the Rio's FPGA clock, which means we need to exist both entirely in userland and in the robot program executable. The Rio's NIC also does not support hardware timestamping.

mcm001 avatar Sep 24 '24 01:09 mcm001

Upstream - https://github.com/wpilibsuite/allwpilib/pull/7007

Alextopher avatar Sep 26 '24 16:09 Alextopher

@mcm001 do you think you could make a sequence diagram of this protocol?

Alextopher avatar Sep 28 '24 01:09 Alextopher

I am certainly capable of producing a drawing, yes. :P

mcm001 avatar Sep 28 '24 01:09 mcm001

Idk I'll ask ChatGPT to generate me some plantuml

mcm001 avatar Sep 28 '24 02:09 mcm001

This also bumps to 2025 beta 1.

Juniormunk avatar Oct 31 '24 12:10 Juniormunk

Beta 1 was merged last night.

mcm001 avatar Oct 31 '24 15:10 mcm001

ah that explains

Juniormunk avatar Oct 31 '24 22:10 Juniormunk

WOBOTLOGTIMESYNC.zip Test data from a real robot

mcm001 avatar Nov 01 '24 17:11 mcm001