chiark / gitweb /
Set offset of the print area center for Mini.
authorSteven Abadie <steven@alephobjects.com>
Thu, 18 Dec 2014 02:49:00 +0000 (19:49 -0700)
committerSteven Abadie <steven@alephobjects.com>
Thu, 18 Dec 2014 02:49:00 +0000 (19:49 -0700)
Cura/gui/configWizard.py
Cura/util/profile.py

index e2fcfaa7889ea9831aec92e4be70a1daf32751c1..1748c8b80273c1dfaed4ab68b0ac85db594ee86c 100644 (file)
@@ -452,9 +452,9 @@ class MachineSelectPage(InfoPage):
                                profile.putMachineSetting('machine_type', 'lulzbot_TAZ')
                                profile.putMachineSetting('serial_baud', '115200')
                        else:
-                               profile.putMachineSetting('machine_width', '158')
-                               profile.putMachineSetting('machine_depth', '158')
-                               profile.putMachineSetting('machine_height', '155')
+                               profile.putMachineSetting('machine_width', '155')
+                               profile.putMachineSetting('machine_depth', '155')
+                               profile.putMachineSetting('machine_height', '163')
                                profile.putProfileSetting('nozzle_size', '0.5')
                                profile.putMachineSetting('machine_name', 'LulzBot Mini')
                                profile.putMachineSetting('machine_type', 'lulzbot_mini')
index 4914e4ccbc066ae1ad114cf4041c43fd08fe2fd8..15b077b6d9db748057076d4a92f39612c6a3619a 100644 (file)
@@ -1107,6 +1107,8 @@ def calculateObjectSizeOffsets():
 def getMachineCenterCoords():
        if getMachineSetting('machine_center_is_zero') == 'True':
                return [0, 0]
+       elif profile.getMachineSetting('machine_type') == 'lulzbot_mini':
+               return [(getMachineSettingFloat('machine_width') / 2) + 2, (getMachineSettingFloat('machine_width') / 2) + 2]
        return [getMachineSettingFloat('machine_width') / 2, getMachineSettingFloat('machine_depth') / 2]
 
 #Returns a list of convex polygons, first polygon is the allowed area of the machine,