pull/110/head v1.0.137
openbuilds-engineer 2019-01-24 17:36:24 +02:00
rodzic 5beb214b90
commit d3eb3eb19f
4 zmienionych plików z 98 dodań i 4 usunięć

Wyświetl plik

@ -1,3 +1,4 @@
v.1.0136: Added Confirmation Dialogs to the Grbl Settings reset buttons
v.1.0136: Added Door and Buttons to Troubleshooting, Added G28/G30 handling, Added Custom machine profile, added Machine Overlay in 3D viewer, added Goto OpenBuilds Button
v1.0.135: Handle XPROv4 DriverMinder/Grbl-feedhold-resume-abort buttons, add G20/G91 to GOTOZERO moves
v1.0.134: Added mPOS gotozero, and wPOS GotoZero via mPos Z0

Wyświetl plik

@ -78,19 +78,19 @@
</div>
<div class="group">
<div class="ribbon-group">
<button class="ribbon-icon-button" onclick="sendGcode('$RST=$'); refreshGrblSettings()">
<button class="ribbon-icon-button" onclick="clearSettings();">
<span class="icon">
<i class="fas fa-sliders-h"></i>
</span>
<span class="caption">Reset&nbsp;Settings</span>
</button><br>
<button class="ribbon-icon-button" onclick="sendGcode('$RST=#'); refreshGrblSettings()">
<button class="ribbon-icon-button" onclick="clearWCO();">
<span class="icon">
<i class="fas fa-layer-group"></i>
</span>
<span class="caption">Reset&nbsp;WCOs</span>
</button><br>
<button class="ribbon-icon-button" onclick="sendGcode('$RST=*'); refreshGrblSettings()">
<button class="ribbon-icon-button" onclick="clearEEPROM();">
<span class="icon">
<i class="fas fa-microchip"></i>
</span>

Wyświetl plik

@ -505,4 +505,97 @@ function displayDirInvert() {
$('#ydirinvert:checkbox').prop('checked', dir.y);
$('#zdirinvert:checkbox').prop('checked', dir.z);
checkifchanged();
}
// <div class="ribbon-group">
// <button class="ribbon-icon-button" onclick="sendGcode('$RST=$'); refreshGrblSettings()">
// <span class="icon">
// <i class="fas fa-sliders-h"></i>
// </span>
// <span class="caption">Reset&nbsp;Settings</span>
// </button><br>
// <button class="ribbon-icon-button" onclick="sendGcode('$RST=#'); refreshGrblSettings()">
// <span class="icon">
// <i class="fas fa-layer-group"></i>
// </span>
// <span class="caption">Reset&nbsp;WCOs</span>
// </button><br>
// <button class="ribbon-icon-button" onclick="sendGcode('$RST=*'); refreshGrblSettings()">
// <span class="icon">
// <i class="fas fa-microchip"></i>
// </span>
// <span class="caption">Reset&nbsp;EEPROM</span>
// </button>
// </div>
clearWCO
clearSettings
function clearSettings() {
Metro.dialog.create({
title: "Are you sure?",
content: "<div>Resetting the Grbl Settings will restore all the settings to factory defaults, but will keep other EEPROM settings intact. Would you like to continue?</div>",
actions: [{
caption: "Yes",
cls: "js-dialog-close secondary",
onclick: function() {
sendGcode('$RST=$');
refreshGrblSettings()
}
},
{
caption: "Cancel",
cls: "js-dialog-close",
onclick: function() {
refreshGrblSettings();
}
}
]
});
}
function clearWCO() {
Metro.dialog.create({
title: "Are you sure?",
content: "<div>Resetting the Work Coordinate Systems will erase all the coordinate system offsets currently stored in the EEPROM on the controller. Would you like to continue?</div>",
actions: [{
caption: "Yes",
cls: "js-dialog-close secondary",
onclick: function() {
sendGcode('$RST=#');
refreshGrblSettings()
}
},
{
caption: "Cancel",
cls: "js-dialog-close",
onclick: function() {
refreshGrblSettings();
}
}
]
});
}
function clearEEPROM() {
Metro.dialog.create({
title: "Are you sure?",
content: "<div>Resetting the EEPROM will erase all the Grbl Firmware settings from your controller, effectively resetting it back to factory defaults. Would you like to continue?</div>",
actions: [{
caption: "Yes",
cls: "js-dialog-close secondary",
onclick: function() {
sendGcode('$RST=*');
refreshGrblSettings()
}
},
{
caption: "Cancel",
cls: "js-dialog-close",
onclick: function() {
refreshGrblSettings();
}
}
]
});
}

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "OpenBuildsCONTROL",
"version": "1.0.136",
"version": "1.0.137",
"license": "AGPL-3.0",
"description": "Machine Interface Driver for OpenBuilds",
"author": "github.com/openbuilds <webmaster@openbuilds.com>",