summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-02-16 18:20:14 +0100
committerHenrik Rydberg <rydberg@euromail.se>2011-02-16 18:20:14 +0100
commitd619da633517175ffa6977a80760673628f91583 (patch)
tree42bddbfbd1b69dcaa8aaf82a6709f21b00e26efb /tools
parent7864e778cc10dbc2b0064f0f1953ef5389f0d68b (diff)
Add velocity estimate
The per-touch velocity is useful in many contexts. This patch adds a simple estimator of the velocity, which also smooths out position jumps caused by course-grained event updates. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'tools')
-rw-r--r--tools/common-defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/common-defs.h b/tools/common-defs.h
index 0e08bc5..e435f72 100644
--- a/tools/common-defs.h
+++ b/tools/common-defs.h
@@ -72,6 +72,8 @@ static void report_frame(const struct utouch_frame *frame)
72 fprintf(stderr, " angle: %f\n", t->orientation); 72 fprintf(stderr, " angle: %f\n", t->orientation);
73 fprintf(stderr, " pressure: %f\n", t->pressure); 73 fprintf(stderr, " pressure: %f\n", t->pressure);
74 fprintf(stderr, " distance: %f\n", t->distance); 74 fprintf(stderr, " distance: %f\n", t->distance);
75 fprintf(stderr, " vx: %f\n", t->vx);
76 fprintf(stderr, " vy: %f\n", t->vy);
75 } 77 }
76 78
77 fprintf(stderr, "sync %d %ld %d %d %d\n", 79 fprintf(stderr, "sync %d %ld %d %d %d\n",