Date:2012-03-21 05:15:05 (11 years 11 months ago)
Author:Werner Almesberger
Commit:6c3bc3e58e987ba6e347c846571899b738159dde
Message:gp2rml: properly calculate pen down time

Files: gp2rml/gp2rml.c (1 diff)

Change Details

gp2rml/gp2rml.c
144144        printf("!PZ%d,%d;PA%d,%d;PD\n",
145145            units(seg->z-z_max), units(z_clear),
146146            units(seg->x), units(seg->y));
147        d = hypot(x-seg->x, y-seg->y)+(z-z_max);
147        d = hypot(x-seg->x, y-seg->y);
148148        s += d;
149        s += z-z_max;
149150        t += d/V_MAX;
151        t += (z-z_max)/z_speed;
150152        x = seg->x;
151153        y = seg->y;
152154        z = seg->z;

Archive Download the corresponding diff file

Branches:
master



interactive