@nebulaglitch/gcode
Version:
A library to generate gcode output
27 lines (24 loc) • 708 B
JavaScript
import Command from '../command.js';
import Argument from '../argument.js';
class FeedMove extends Command {
constructor(x = null, y = null, z = null, w = null, f = null){
super('G', 1);
if (x !== null) {
this.args.push(new Argument('X', x));
}
if (y !== null) {
this.args.push(new Argument('Y', y));
}
if (z !== null) {
this.args.push(new Argument('Z', z));
}
if (w !== null) {
this.args.push(new Argument('W', w));
}
if (f !== null) {
this.args.push(new Argument('F', f));
}
}
}
export { FeedMove as default };
//# sourceMappingURL=feedmove.js.map