This commit is contained in:
sanjayk03-dev
2023-12-30 04:39:31 +05:30
parent 5a438dbcb0
commit dd0bf48d34
3 changed files with 38 additions and 16 deletions

View File

@@ -18,6 +18,16 @@ module.exports = {
"gcode-viewer": require("./gcode-viewer")
},
computed:{
mach_state: function() {
const cycle = this.state.cycle;
const state = this.state.xx;
if (state != "ESTOPPED" && (cycle == "jogging" || cycle == "homing")) {
return cycle.toUpperCase();
}
return state || "";
},
is_ready: function() {
console.log("is_ready: ",this.mach_state);
return this.mach_state == "READY";