From: daid303 Date: Wed, 8 May 2013 14:27:34 +0000 (+0200) Subject: Some minor corrections for dual head offset calibration. X-Git-Tag: 13.05~22 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=16836c35ba1feb06b470c2aa6aebacbda3f60feb;p=cura.git Some minor corrections for dual head offset calibration. --- diff --git a/Cura/gui/configWizard.py b/Cura/gui/configWizard.py index ab147367..e2a26b3d 100644 --- a/Cura/gui/configWizard.py +++ b/Cura/gui/configWizard.py @@ -1074,17 +1074,18 @@ class headOffsetCalibrationPage(InfoPage): self.comm.printGCode(gcode.list()) elif self._wizardState == 7: try: - n = int(self.textEntry.GetValue()) + n = int(self.textEntry.GetValue()) - 1 except: return x = profile.getPreferenceFloat('extruder_offset_x1') x += -1.0 + n * 0.1 profile.putPreference('extruder_offset_x1', '%0.2f' % (x)) self.infoBox.SetAttention('Which horizontal line number lays perfect on top of each other? Front most line is zero.') + self.textEntry.SetValue('10') self._wizardState = 8 elif self._wizardState == 8: try: - n = int(self.textEntry.GetValue()) + n = int(self.textEntry.GetValue()) - 1 except: return y = profile.getPreferenceFloat('extruder_offset_y1') @@ -1129,7 +1130,7 @@ class headOffsetCalibrationPage(InfoPage): elif self._wizardState == 6: self._wizardState = 7 wx.CallAfter(self.infoBox.SetAttention, 'Which vertical line number lays perfect on top of each other? Leftmost line is zero.') - wx.CallAfter(self.textEntry.SetValue, '5') + wx.CallAfter(self.textEntry.SetValue, '10') wx.CallAfter(self.textEntry.Enable, True) wx.CallAfter(self.resumeButton.Enable, True) wx.CallAfter(self.resumeButton.SetFocus) diff --git a/Cura/util/sliceEngine.py b/Cura/util/sliceEngine.py index f72f51bc..0f2c1968 100644 --- a/Cura/util/sliceEngine.py +++ b/Cura/util/sliceEngine.py @@ -196,7 +196,7 @@ class Slicer(object): 'insetCount': int(profile.calculateLineCount()), 'downSkinCount': int(profile.calculateSolidLayerCount()) if profile.getProfileSetting('solid_bottom') == 'True' else 0, 'upSkinCount': int(profile.calculateSolidLayerCount()) if profile.getProfileSetting('solid_top') == 'True' else 0, - 'sparseInfillLineDistance': int(100 * profile.calculateEdgeWidth() * 1000 / profile.getProfileSettingFloat('fill_density')) if profile.getProfileSettingFloat('fill_density') > 0 else 9999999999, + 'sparseInfillLineDistance': int(100 * profile.calculateEdgeWidth() * 1000 / profile.getProfileSettingFloat('fill_density')) if profile.getProfileSettingFloat('fill_density') > 0 else -1, 'initialSpeedupLayers': int(4), 'initialLayerSpeed': int(profile.getProfileSettingFloat('bottom_layer_speed')), 'printSpeed': int(profile.getProfileSettingFloat('print_speed')),