dialog to switch between rotary modes

This commit is contained in:
sanjayk03-dev
2024-11-29 13:13:14 +05:30
parent eab66b12c1
commit 4d37731cbb
4 changed files with 62 additions and 1 deletions

View File

@@ -321,6 +321,13 @@ module.exports = new Vue({
return semverLt(this.config.full_version, this.latestVersion);
},
showSwitchRotaryModeDialog: function(){
SvelteComponents.showDialog("SwitchRotary", {
isActive: this.is_rotary_active,
switchMode: () => this.toggle_rotary()
});
},
toggle_rotary: async function() {
let motor = this.config.motors[2];
if(motor['axis'] == 'A'){