Date:2015-05-22 16:27:56 (8 years 10 months ago)
Author:Werner Almesberger
Commit:d3bccb6bfc1f8ae26c0981127e2f2af546574eda
Message:gp2rml/gp2rml.c: new option "-t top" to manually set z_max

Files: gp2rml/gp2rml.c (2 diffs)

Change Details

gp2rml/gp2rml.c
189189    fprintf(stderr,
190190"usage: %s [-s z_scale] z_clear[mm] xy_speed z_speed [file]\n\n"
191191" -s z_scale scale Z axis by z_scale (default: 1.0)\n"
192" -t top set the top elevation, in mm (default: auto-detect)\n"
192193" z_clear clearance above the highest peak, in mm (must be > 0)\n"
193194" Unit (\"mm\") can optionally be specified\n"
194195" xy_speed cutting speed, in mm/s\n"
...... 
206207    double p[3];
207208    int c;
208209
209     while ((c = getopt(argc, argv, "s:")) != EOF)
210     while ((c = getopt(argc, argv, "s:t:")) != EOF)
210211        switch (c) {
211212        case 's':
212            z_scale = strtod(optarg &end);
213            z_scale = strtod(optarg, &end);
213214            if (*end)
214215                usage(*argv);
215216            break;
217        case 't':
218            z_max = strtod(optarg, &end);
219            if (*end && !strcmp(end, "mm"))
220                usage(*argv);
221            break;
216222        default:
217223            usage(*argv);
218224        }

Archive Download the corresponding diff file

Branches:
master



interactive