mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 21:40:40 +01:00
tools: print accel profiles up to 1000 mm/s
The range that matters is 0-200, maybe up to 400 if you account for really fast movements. But to match other, published, accel curves default to up to 1000 mm/s. It's easy enough in gnuplot to reduce the range. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
a6b550cb78
commit
765ef9a31d
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ print_accel_func(struct motion_filter *filter,
|
|||
printf("# plot \"gnuplot.data\" using 1:2 title 'accel factor'\n");
|
||||
printf("#\n");
|
||||
printf("# data: velocity(mm/s) factor velocity(units/us)\n");
|
||||
for (mmps = 0.0; mmps < 300.0; mmps += 1) {
|
||||
for (mmps = 0.0; mmps < 1000.0; mmps += 1) {
|
||||
double units_per_us = mmps_to_upus(mmps, dpi);
|
||||
double result = profile(filter, NULL, units_per_us, 0 /* time */);
|
||||
printf("%.8f\t%.4f\t%.8f\n", mmps, result, units_per_us);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue