changed from 1.5.0 to 1.6.0, added rotary feature

This commit is contained in:
sanjayk03-dev
2024-10-13 23:32:26 +05:30
parent 5cbc9ae780
commit 59fef72a84
7 changed files with 26 additions and 6 deletions

View File

@@ -311,6 +311,21 @@ module.exports = new Vue({
return semverLt(this.config.full_version, this.latestVersion);
},
toggle_rotary: async function() {
let motor = this.config.motors[2];
if(motor['axis'] == 'A'){
motor['axis'] = 'Y';
} else {
motor['axis'] = 'A';
}
try {
await api.put("config/save", this.config);
} catch (error) {
console.error("Restore failed:", error);
alert("Error occured");
}
},
showShutdownDialog: function() {
SvelteComponents.showDialog("Shutdown");
},