Open jmkao opened 8 years ago
I was in the middle of fiddling around in this code, any requests for features here? The "defaultGCode" section of this XML aren't appropriate. Those functions need to be implemented each as a separate GCodeTemplates exactly like the other templates in SlicingProfile: gCodeHeader; gCodeFooter; gCodePreslice; gCodeLift; zLiftSpeedGCode; zLiftDistanceGCode; gCodeShutter;
Here are the settings for GUI setup XML for CW:
X-X Axis Y-Y Axis Z-Z Axis T-Tilt control E-Extruder motor H-Extruder Heater B-Heated Platform P-Projector control G-Manual GCode
I'll put nicer names on all of the JSON of course, but this should give us a start on all of the GUI functionality.
Hmm.. looking back at the original feature request, a lot of what seems to be needed is a modular way to customize machine controls, which tend to vary from machine to machine, without having to make a fork of the whole UI.
Most of this is already separated within printerControls.html and printerControls.js, the only need then would be away to allow just these two files to be separated out into some machine-specific component without substituting the whole resources directory.
Perhaps as a future enhancement we could parameterize the machine control G-code and basic UI into the machine configuration Originally discussed in #158.
For instance, even on my one machine, depending on which stepper driver I have installed (A4988 or DRV8825) and what the current limit potentiometer is set to, there can be a particularly nasty Z-axis resonance at certain speeds. It would be nice to change the feed rates to avoid the resonating speed w/o having to compile a custom G-code driver...
Thinking about this in terms of screen controls, one way that might work would be to have a section in the machine dedicated to properties about the machine controls, which might even allow config-based addition of custom buttons, so that not every small machine-specific UI change would require one to fork a whole set of resources. Maybe something like an XML section like:
The idea is purely based on the control screen, to try to bridge the gap between the most common machine specific requirements and the more exotic ones that would requiring forking all of the resources.