tools: print accel profiles up to 1000 mm/s
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 21 Feb 2017 04:35:18 +0000 (14:35 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 21 Feb 2017 05:05:07 +0000 (15:05 +1000)
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>
tools/ptraccel-debug.c

index 4fcb45f..acb82c6 100644 (file)
@@ -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);