chiark / gitweb /
Fix the X and Y offsets of the dual extruder toolheads
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 31 Jul 2015 20:46:39 +0000 (16:46 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 31 Jul 2015 20:46:39 +0000 (16:46 -0400)
Fixes T171

Cura/gui/configWizard.py

index 3b985535e091f3b069799dde21b7ad576b195572..fb25a4064132cb5ea7085ba04d58c07648b6ec18 100644 (file)
@@ -1302,12 +1302,16 @@ class LulzbotTazToolheadSelectPage(LulzbotToolheadSelectPage):
                elif self.dually.GetValue():
                        profile.putProfileSetting('nozzle_size', '0.5')
                        profile.putMachineSetting('extruder_amount', '2')
+                       profile.putMachineSetting('extruder_offset_x1', '0.0')
+                       profile.putMachineSetting('extruder_offset_y1', '-50.0' if self.version == 2 else '-52.00')
                        profile.putMachineSetting('toolhead', 'Dual Extruder V%d' % self.version)
                        profile.putMachineSetting('toolhead_shortname', 'Dually v%d' % self.version)
                        profile.putMachineSetting('machine_type', 'lulzbot_TAZ_%d_DuallyV%d' % version)
                elif self.flexydually.GetValue():
                        profile.putProfileSetting('nozzle_size', '0.6')
                        profile.putMachineSetting('extruder_amount', '2')
+                       profile.putMachineSetting('extruder_offset_x1', '0.0')
+                       profile.putMachineSetting('extruder_offset_y1', '-50.0' if self.version == 2 else '-52.00')
                        profile.putMachineSetting('toolhead', 'FlexyDually V%d' % self.version)
                        profile.putMachineSetting('toolhead_shortname', 'FlexyDually v%d' % self.version)
                        profile.putMachineSetting('machine_type', 'lulzbot_TAZ_%d_FlexyDuallyV%d' % version)