Added a setting to allow disabling probing prompts

This commit is contained in:
David Carley
2021-03-15 19:21:06 -07:00
parent 77d064badc
commit 437772c908
6 changed files with 21 additions and 2 deletions

View File

@@ -267,6 +267,11 @@ module.exports = {
},
start_probe_test: function(on_finish) {
if (!this.config.settings['probing-prompts']) {
on_finish();
return;
}
this.show_probe_test_modal = true;
Vue.set(this.state, "saw_probe_connected", false);
Vue.set(this.state, "on_probe_finish", on_finish);

View File

@@ -35,6 +35,12 @@ script#settings-view-template(type="text/x-template")
| units used in motor configuration. GCode #[tt program-start],
| set below, may also change the default machine units.
fieldset
h2 Probing safety prompts
templated-input(name="probing-prompts",
:model.sync="config.settings['probing-prompts']",
:template="template.settings['probing-prompts']")
fieldset
h2 Probe Dimensions
templated-input(v-for="templ in template.probe", :name="$key",

View File

@@ -144,6 +144,7 @@ class Config(object):
if version < (1, 0, 7):
config['settings']['max-deviation'] = 0.001
config['settings']['junction-accel'] = 200000
config['settings']['probing-prompts'] = True
for motor in config['motors']:
motor['stall-microstep'] = 8
motor['stall-current'] = 1

View File

@@ -22,6 +22,11 @@
"max": 100000000,
"unit": "mm/min²",
"default": 200000
},
"probing-prompts": {
"help": "Enable or disable safety prompts during and after probing",
"type": "bool",
"default": true
}
},
"motors": {

View File

@@ -29,7 +29,8 @@
"settings": {
"junction-accel": 200000,
"max-deviation": 0.001,
"units": "METRIC"
"units": "METRIC",
"probing-prompts": true
},
"motors": [
{

View File

@@ -29,7 +29,8 @@
"settings": {
"junction-accel": 200000,
"max-deviation": 0.001,
"units": "METRIC"
"units": "METRIC",
"probing-prompts": true
},
"motors": [
{