diff --git a/src/js/app.js b/src/js/app.js index f72117b..8517ffa 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -325,10 +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; + this.config.motors[1]['max-velocity'] *= 2; } else { motor['axis'] = 'A'; - this.config.motors[1]['max-velocity'] *= 2; + this.config.motors[1]['max-velocity'] /= 2; } try { await api.put("config/save", this.config); diff --git a/src/pug/templates/control-view.pug b/src/pug/templates/control-view.pug index f43b719..7bcf92f 100644 --- a/src/pug/templates/control-view.pug +++ b/src/pug/templates/control-view.pug @@ -98,7 +98,7 @@ script#control-view-template(type="text/x-template") button(:style="getJogIncrStyle('large')", @click="jog_incr = 'large'") span {{jog_incr_amounts[display_units].large}}#[span.jog-units {{metric ? 'mm' : 'in'}}] - tr(v-if="is_rotary_active") + tr(v-if="config.motors[2]['axis'] == 'A'") td(style="height:100px", align="center", colspan="2") button(@click="console.log('button pressed: Probe Rotary')") | Probe Rotary