diff --git a/src/js/app.js b/src/js/app.js index 9eba4aa..f72117b 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -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);