diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-02-21 14:35:18 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-02-21 15:05:07 +1000 |
commit | 765ef9a31dc3b8551f388858392bfa64ee013c66 (patch) | |
tree | 886a3049b014294dfc853cc0cee76637833d33d3 /tools | |
parent | a6b550cb783d68d63748ecfd1a4084aec8ddc73a (diff) |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ptraccel-debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ptraccel-debug.c b/tools/ptraccel-debug.c index 4fcb45f..acb82c6 100644 --- a/tools/ptraccel-debug.c +++ b/tools/ptraccel-debug.c @@ -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); |