setting button to load origin
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -26,3 +26,4 @@ __pycache__
|
|||||||
*.rej
|
*.rej
|
||||||
*.elf
|
*.elf
|
||||||
*.hex
|
*.hex
|
||||||
|
.idea/deployment.xml
|
||||||
|
|||||||
@@ -806,6 +806,10 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
load_position: function (axis) {
|
||||||
|
console.log(this.config.axes["offset_" + axis]);
|
||||||
|
},
|
||||||
|
|
||||||
start: function () {
|
start: function () {
|
||||||
api.put("start");
|
api.put("start");
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -159,6 +159,10 @@ script#control-view-template(type="text/x-template")
|
|||||||
title=`Home {{'${axis}' | upper}} axis.`, style="height:60px;width:60px")
|
title=`Home {{'${axis}' | upper}} axis.`, style="height:60px;width:60px")
|
||||||
.fa.fa-home
|
.fa.fa-home
|
||||||
|
|
||||||
|
button.pure-button(:disabled="!is_idle", @click=`load_position('${axis}')`,
|
||||||
|
title=`Load {{'${axis}' | upper}} origin.`, style="height:60px;width:60px")
|
||||||
|
.fa.fa-home
|
||||||
|
|
||||||
|
|
||||||
tr(style="vertical-align: top;")
|
tr(style="vertical-align: top;")
|
||||||
td
|
td
|
||||||
|
|||||||
Reference in New Issue
Block a user