LaserWeb4
LaserWeb4 copied to clipboard
Help with new codegenerator
Hello,
I have a question. I would like to add a new gcode generator in order to work with a custom laser cut.
In order to do this, i tested something really simple.
i've modified the default generator like this:
file: default-generator.js
- line 15 : let gcode = "x7005"; instead of let gcode = "";
- line 25: let gcode = "x7006"; instead of let gcode = "";
I saved the modified file. In the console i write "npm start", but when i try to generate gcode from the web app, i see there is no change; the generated code is Always the same.
Any help please?
To select the generator yo have to also add it on settings and on getGenerator function. LW does not introspect to see what generators have available. Check https://github.com/LaserWeb/LaserWeb4/pull/473/commits/aae179cd3991dd7d70ac39e10ee3e457834b9198