Skip to content

Add Frenet-Serret Frame Predictor plugin#159

Merged
Kuuuube merged 1 commit into
OpenTabletDriver:masterfrom
make-42:master
May 28, 2026
Merged

Add Frenet-Serret Frame Predictor plugin#159
Kuuuube merged 1 commit into
OpenTabletDriver:masterfrom
make-42:master

Conversation

@make-42
Copy link
Copy Markdown
Contributor

@make-42 make-42 commented May 23, 2026

I wrote this little plugin to trade a bit of added jitter/jaggedness for predicting a few reports into the future for tablets with a bit of latency.

  • First it'll get the last few reports from your tablet
  • Then it'll fit a cubic B-spline through them to smooth them out
  • Finally it'll compute tangential and normal acceleration over that timespan in a Frenet-Serret reference frame linked to the cursor and its past trajectory (pretty much just determining direction of movement and signed curvature).
  • Then it'll compute a average of the derivatives of those accelerations over that period giving more weight to the recent samples.
  • Then it'll just integrate with those derivative values to compute a prediction of where the Frenet-Serret frame should be at a set offset in the future.

Perceived latency goes down...

@Kuuuube Kuuuube added the addition New repository entry label May 28, 2026
@Kuuuube Kuuuube merged commit 770fdd1 into OpenTabletDriver:master May 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition New repository entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants