modifying max-velocity

This commit is contained in:
sanjayk03-dev
2024-11-04 19:16:08 +05:30
parent 91374c3e06
commit 4c52c56449

View File

@@ -325,8 +325,10 @@ module.exports = new Vue({
let motor = this.config.motors[2];
if(motor['axis'] == 'A'){
motor['axis'] = 'Y';
this.config.motors[1]['max-velocity'] /= 2;
} else {
motor['axis'] = 'A';
this.config.motors[1]['max-velocity'] *= 2;
}
try {
await api.put("config/save", this.config);