Default value and overrides category

The settings must be in the 'overrides' category, not in the 'settings' category. Also, define a default value rather than a value.

Contributes to issue CURA-1278.
This commit is contained in:
Ghostkeeper 2016-05-17 16:14:12 +02:00
parent caa108c3cf
commit dc82a90047
4 changed files with 22 additions and 30 deletions

View File

@ -43,9 +43,6 @@
"machine_gcode_flavor": { "machine_gcode_flavor": {
"default_value": "RepRap" "default_value": "RepRap"
}, },
"machine_platform_offset": {
"default_value": [ 0, -82, 0 ]
},
"layer_height": { "layer_height": {
"default_value": 0.2 "default_value": 0.2
}, },

View File

@ -43,9 +43,6 @@
"machine_gcode_flavor": { "machine_gcode_flavor": {
"default_value": "RepRap" "default_value": "RepRap"
}, },
"machine_platform_offset": {
"default_value": [6, 1320, 0]
},
"material_print_temperature": { "material_print_temperature": {
"default_value": 210 "default_value": 210
}, },

View File

@ -43,9 +43,6 @@
"machine_gcode_flavor": { "machine_gcode_flavor": {
"default_value": "RepRap" "default_value": "RepRap"
}, },
"machine_platform_offset": {
"default_value": [0, -82, 0]
},
"layer_height": { "layer_height": {
"default_value": 0.2 "default_value": 0.2
}, },

View File

@ -17,6 +17,7 @@
] ]
} }
}, },
"overrides": { "overrides": {
"machine_start_gcode": { "machine_start_gcode": {
"default_value": "; -- START GCODE --\nG21 ;set units to millimetres\nG90 ;set to absolute positioning\nM106 S0 ;set fan speed to zero (turned off)\nG28 X0 Y0 ;move to the X/Y origin (Home)\nG28 Z0 ;move to the Z origin (Home)\nG1 Z15.0 F1200 ;move Z to position 15.0 mm\nG92 E0 ;zero the extruded length\nG1 E20 F200 ;extrude 20mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 F7200 ;set feedrate to 120 mm/sec\n; -- end of START GCODE --" "default_value": "; -- START GCODE --\nG21 ;set units to millimetres\nG90 ;set to absolute positioning\nM106 S0 ;set fan speed to zero (turned off)\nG28 X0 Y0 ;move to the X/Y origin (Home)\nG28 Z0 ;move to the Z origin (Home)\nG1 Z15.0 F1200 ;move Z to position 15.0 mm\nG92 E0 ;zero the extruded length\nG1 E20 F200 ;extrude 20mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 F7200 ;set feedrate to 120 mm/sec\n; -- end of START GCODE --"
@ -25,67 +26,67 @@
"default_value": "; -- END GCODE --\nM104 S0 ;set extruder temperature to zero (turned off)\nG91 ;set to relative positioning\nG1 E-20 F300 ;retract the filament a bit to release some of the pressure\nG90 ;set to absolute positioning\nG1 Z200 ;move the platform to the bottom\nG28 X0 Y0 ;move to the X/Y origin (Home)\nM84 ;turn off steppers\n; -- end of END GCODE --" "default_value": "; -- END GCODE --\nM104 S0 ;set extruder temperature to zero (turned off)\nG91 ;set to relative positioning\nG1 E-20 F300 ;retract the filament a bit to release some of the pressure\nG90 ;set to absolute positioning\nG1 Z200 ;move the platform to the bottom\nG28 X0 Y0 ;move to the X/Y origin (Home)\nM84 ;turn off steppers\n; -- end of END GCODE --"
}, },
"machine_width": { "machine_width": {
"value": 297 "default_value": 297
}, },
"machine_depth": { "machine_depth": {
"value": 210 "default_value": 210
}, },
"machine_height": { "machine_height": {
"value": 200 "default_value": 200
}, },
"machine_heated_bed": { "machine_heated_bed": {
"value": false "default_value": false
}, },
"machine_center_is_zero": { "machine_center_is_zero": {
"value": false "default_value": false
}, },
"machine_gcode_flavor": { "machine_gcode_flavor": {
"value": "RepRap" "default_value": "RepRap"
}, },
"layer_height": { "layer_height": {
"value": 0.2 "default_value": 0.2
}, },
"layer_height_0": { "layer_height_0": {
"value": 0.2 "default_value": 0.2
}, },
"wall_thickness": { "wall_thickness": {
"value": 1 "default_value": 1
}, },
"top_bottom_thickness": { "top_bottom_thickness": {
"value": 1 "default_value": 1
}, },
"bottom_thickness": { "bottom_thickness": {
"value": 1 "default_value": 1
}, },
"material_print_temperature": { "material_print_temperature": {
"value": 220 "default_value": 220
}, },
"material_bed_temperature": { "material_bed_temperature": {
"value": 0 "default_value": 0
}, },
"material_diameter": { "material_diameter": {
"value": 1.75 "default_value": 1.75
}, },
"speed_print": { "speed_print": {
"value": 40 "default_value": 40
}, },
"speed_infill": { "speed_infill": {
"value": 40 "default_value": 40
}, },
"speed_wall": { "speed_wall": {
"value": 35 "default_value": 35
}, },
"speed_topbottom": { "speed_topbottom": {
"value": 35 "default_value": 35
}, },
"speed_travel": { "speed_travel": {
"value": 120 "default_value": 120
}, },
"speed_layer_0": { "speed_layer_0": {
"value": 20 "default_value": 20
}, },
"support_enable": { "support_enable": {
"value": true "default_value": true
} }
} }