예제 #1
0
def getDefaultFirmware():
	if profile.getPreference('machine_type') == 'ultimaker':
		if sys.platform.startswith('linux'):
			return resources.getPathForFirmware("ultimaker_115200.hex")
		else:
			return resources.getPathForFirmware("ultimaker_250000.hex")
	return None
예제 #2
0
def getDefaultFirmware():
	if profile.getPreference('machine_type') == 'ultimaker':
		if profile.getPreferenceFloat('extruder_amount') > 1:
			return None
		if profile.getPreference('has_heated_bed') == 'True':
			return None
		if sys.platform.startswith('linux'):
			return resources.getPathForFirmware("ultimaker_115200.hex")
		else:
			return resources.getPathForFirmware("ultimaker_250000.hex")
	return None
def getDefaultFirmware(machineIndex=None):
    machine_type = profile.getMachineSetting('machine_type', machineIndex)
    extruders = profile.getMachineSettingFloat('extruder_amount', machineIndex)
    heated_bed = profile.getMachineSetting('has_heated_bed',
                                           machineIndex) == 'True'
    baudrate = 250000
    if sys.platform.startswith('linux'):
        baudrate = 115200
    if machine_type == 'ultimaker':
        name = 'MarlinUltimaker'
        if extruders > 2:
            return None
        if heated_bed:
            name += '-HBK'
        name += '-%d' % (baudrate)
        if extruders > 1:
            name += '-dual'
        return resources.getPathForFirmware(name + '.hex')

    if machine_type == 'ultimaker_plus':
        name = 'MarlinUltimaker-UMOP-%d' % (baudrate)
        if extruders > 2:
            return None
        if extruders > 1:
            name += '-dual'
        return resources.getPathForFirmware(name + '.hex')

    if machine_type == 'ultimaker2':
        if extruders > 2:
            return None
        if extruders > 1:
            return resources.getPathForFirmware("MarlinUltimaker2-dual.hex")
        return resources.getPathForFirmware("MarlinUltimaker2.hex")
    if machine_type == 'ultimaker2go':
        return resources.getPathForFirmware("MarlinUltimaker2go.hex")
    if machine_type == 'ultimaker2extended':
        if extruders > 2:
            return None
        if extruders > 1:
            return resources.getPathForFirmware(
                "MarlinUltimaker2extended-dual.hex")
        return resources.getPathForFirmware("MarlinUltimaker2extended.hex")
    if machine_type == 'ultimaker2+':
        return resources.getPathForFirmware("MarlinUltimaker2Plus.hex")
    if machine_type == 'ultimaker2+extended':
        return resources.getPathForFirmware("MarlinUltimaker2PlusExtended.hex")
    if machine_type == 'Witbox':
        return resources.getPathForFirmware("MarlinWitbox.hex")
    return None
예제 #4
0
def getDefaultFirmware():
	if profile.getMachineSetting('machine_type') == 'ultimaker':
		if profile.getMachineSetting('has_heated_bed') == 'True':
			return None
		if profile.getMachineSettingFloat('extruder_amount') > 2:
			return None
		if profile.getMachineSettingFloat('extruder_amount') > 1:
			if sys.platform.startswith('linux'):
				return resources.getPathForFirmware("MarlinUltimaker-115200-dual.hex")
			else:
				return resources.getPathForFirmware("MarlinUltimaker-250000-dual.hex")
		if sys.platform.startswith('linux'):
			return resources.getPathForFirmware("MarlinUltimaker-115200.hex")
		else:
			return resources.getPathForFirmware("MarlinUltimaker-250000.hex")
	return None
def getDefaultFirmware(machineIndex = None):
	machine_type = profile.getMachineSetting('machine_type', machineIndex)
	extruders = profile.getMachineSettingFloat('extruder_amount', machineIndex)
	heated_bed = profile.getMachineSetting('has_heated_bed', machineIndex) == 'True'
	baudrate = 250000
	if sys.platform.startswith('linux'):
		baudrate = 115200
	if machine_type == 'ultimaker':
		name = 'MarlinUltimaker'
		if extruders > 2:
			return None
		if heated_bed:
			name += '-HBK'
		name += '-%d' % (baudrate)
		if extruders > 1:
			name += '-dual'
		return resources.getPathForFirmware(name + '.hex')

	if machine_type == 'ultimaker_plus':
		name = 'MarlinUltimaker-UMOP-%d' % (baudrate)
		if extruders > 2:
			return None
		if extruders > 1:
			name += '-dual'
		return resources.getPathForFirmware(name + '.hex')

	if machine_type == 'ultimaker2':
		if extruders > 2:
			return None
		if extruders > 1:
			return resources.getPathForFirmware("MarlinUltimaker2-dual.hex")
		return resources.getPathForFirmware("MarlinUltimaker2.hex")
	if machine_type == 'ultimaker2go':
		return resources.getPathForFirmware("MarlinUltimaker2go.hex")
	if machine_type == 'ultimaker2extended':
		if extruders > 2:
			return None
		if extruders > 1:
			return resources.getPathForFirmware("MarlinUltimaker2extended-dual.hex")
		return resources.getPathForFirmware("MarlinUltimaker2extended.hex")
	if machine_type == 'ultimaker2+':
		return resources.getPathForFirmware("MarlinUltimaker2Plus.hex")
	if machine_type == 'ultimaker2+extended':
		return resources.getPathForFirmware("MarlinUltimaker2PlusExtended.hex")
	if machine_type == 'Witbox':
		return resources.getPathForFirmware("MarlinWitbox.hex")
	return None
예제 #6
0
def getDefaultFirmware():
    if profile.getPreference('machine_type') == 'ultimaker':
        if profile.getPreference('has_heated_bed') == 'True':
            return None
        if profile.getPreferenceFloat('extruder_amount') > 2:
            return None
        if profile.getPreferenceFloat('extruder_amount') > 1:
            if sys.platform.startswith('linux'):
                return resources.getPathForFirmware(
                    "MarlinUltimaker-115200-dual.hex")
            else:
                return resources.getPathForFirmware(
                    "MarlinUltimaker-250000-dual.hex")
        if sys.platform.startswith('linux'):
            return resources.getPathForFirmware("MarlinUltimaker-115200.hex")
        else:
            return resources.getPathForFirmware("MarlinUltimaker-250000.hex")
    return None
def getDefaultFirmware(machineIndex = None):
	if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker':
		if profile.getMachineSetting('has_heated_bed', machineIndex) == 'True':
			return None
		if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 2:
			return None
		if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 1:
			if sys.platform.startswith('linux'):
				return resources.getPathForFirmware("MarlinUltimaker-115200-dual.hex")
			else:
				return resources.getPathForFirmware("MarlinUltimaker-250000-dual.hex")
		if sys.platform.startswith('linux'):
			return resources.getPathForFirmware("MarlinUltimaker-115200.hex")
		else:
			return resources.getPathForFirmware("MarlinUltimaker-250000.hex")
	if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker2':
		return resources.getPathForFirmware("MarlinUltimaker2.hex")
	return None
예제 #8
0
def getDefaultFirmware():
    if profile.getMachineSetting("machine_type") == "ultimaker":
        if profile.getMachineSetting("has_heated_bed") == "True":
            return None
        if profile.getMachineSettingFloat("extruder_amount") > 2:
            return None
        if profile.getMachineSettingFloat("extruder_amount") > 1:
            if sys.platform.startswith("linux"):
                return resources.getPathForFirmware("MarlinUltimaker-115200-dual.hex")
            else:
                return resources.getPathForFirmware("MarlinUltimaker-250000-dual.hex")
        if sys.platform.startswith("linux"):
            return resources.getPathForFirmware("MarlinUltimaker-115200.hex")
        else:
            return resources.getPathForFirmware("MarlinUltimaker-250000.hex")
    if profile.getMachineSetting("machine_type") == "ultimaker2":
        return resources.getPathForFirmware("MarlinUltimaker2.hex")
    return None
예제 #9
0
def getDefaultFirmware(machineIndex=None):
    if profile.getMachineSetting("machine_type", machineIndex) == "ultimaker":
        name = "MarlinUltimaker"
        if profile.getMachineSettingFloat("extruder_amount", machineIndex) > 2:
            return None
        if profile.getMachineSetting("has_heated_bed", machineIndex) == "True":
            name += "-HBK"
        if sys.platform.startswith("linux"):
            name += "-115200"
        else:
            name += "-250000"
        if profile.getMachineSettingFloat("extruder_amount", machineIndex) > 1:
            name += "-dual"
        return resources.getPathForFirmware(name + ".hex")

    if profile.getMachineSetting("machine_type", machineIndex) == "ultimaker2":
        return resources.getPathForFirmware("MarlinUltimaker2.hex")
    return None
예제 #10
0
def getDefaultFirmware(machineIndex = None):
	if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker':
		name = 'MarlinUltimaker'
		if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 2:
			return None
		if profile.getMachineSetting('has_heated_bed', machineIndex) == 'True':
			name += '-HBK'
		if sys.platform.startswith('linux'):
			name += '-115200'
		else:
			name += '-250000'
		if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 1:
			name += '-dual'
		return resources.getPathForFirmware(name + '.hex')

	if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker2':
		return resources.getPathForFirmware("MarlinUltimaker2.hex")
	if profile.getMachineSetting('machine_type', machineIndex) == 'Witbox':
		return resources.getPathForFirmware("MarlinWitbox.hex")
	return None
예제 #11
0
def getDefaultFirmware(machineIndex=None):
    if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker':
        name = 'MarlinUltimaker'
        if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 2:
            return None
        if profile.getMachineSetting('has_heated_bed', machineIndex) == 'True':
            name += '-HBK'
        if sys.platform.startswith('linux'):
            name += '-115200'
        else:
            name += '-250000'
        if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 1:
            name += '-dual'
        return resources.getPathForFirmware(name + '.hex')

    if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker2':
        return resources.getPathForFirmware("MarlinUltimaker2.hex")
    if profile.getMachineSetting('machine_type', machineIndex) == 'Witbox':
        return resources.getPathForFirmware("MarlinWitbox.hex")
    return None
예제 #12
0
def getDefaultFirmware(machineIndex=None):
    machine_type = profile.getMachineSetting("machine_type", machineIndex)
    extruders = profile.getMachineSettingFloat("extruder_amount", machineIndex)
    heated_bed = profile.getMachineSetting("has_heated_bed", machineIndex) == "True"
    baudrate = 250000

    if sys.platform.startswith("linux"):
        baudrate = 115200

    if machine_type == "BCN3DSigma":
        return resources.getPathForFirmware("MarlinBCN3DSigma.hex")
    if machine_type == "ultimaker":
        name = "MarlinUltimaker"
        if extruders > 2:
            return None
        if heated_bed:
            name += "-HBK"
        name += "-%d" % (baudrate)
        if extruders > 1:
            name += "-dual"
        return resources.getPathForFirmware(name + ".hex")
    if machine_type == "ultimaker_plus":
        name = "MarlinUltimaker-UMOP-%d" % (baudrate)
        if extruders > 2:
            return None
        if extruders > 1:
            name += "-dual"
        return resources.getPathForFirmware(name + ".hex")
    if machine_type == "ultimaker2":
        if extruders > 2:
            return None
        if extruders > 1:
            return resources.getPathForFirmware("MarlinUltimaker2-dual.hex")
        return resources.getPathForFirmware("MarlinUltimaker2.hex")
    if machine_type == "ultimaker2go":
        return resources.getPathForFirmware("MarlinUltimaker2go.hex")
    if machine_type == "ultimaker2extended":
        if extruders > 2:
            return None
        if extruders > 1:
            return resources.getPathForFirmware("MarlinUltimaker2extended-dual.hex")
        return resources.getPathForFirmware("MarlinUltimaker2extended.hex")
    if machine_type == "Witbox":
        return resources.getPathForFirmware("MarlinWitbox.hex")
    return None
예제 #13
0
def getDefaultFirmware(machineIndex = None):
	firmwareDict = {
			'ultimaker2go':"MarlinUltimaker2go.hex",
			'Witbox':"MarlinWitbox.hex",
			
			#TAZ Budaschnozzle
			'lulzbot_TAZ_4_SingleV1':       "TAZ4-5-Single-or-Flexystruder-Budaschnozzle-2014Q3.hex",
			'lulzbot_TAZ_5_SingleV1':       "TAZ4-5-Single-or-Flexystruder-Budaschnozzle-2014Q3.hex",
			'lulzbot_TAZ_4_FlexystruderV1': "TAZ4-5-Single-or-Flexystruder-Budaschnozzle-2014Q3.hex",
			'lulzbot_TAZ_5_FlexystruderV1': "TAZ4-5-Single-or-Flexystruder-Budaschnozzle-2014Q3.hex",
			
			'lulzbot_TAZ_4_DualV1':        "TAZ4-5-Dual-or-FlexyDually-Budaschnozzle-2015Q1.hex",
			'lulzbot_TAZ_5_DualV1':        "TAZ4-5-Dual-or-FlexyDually-Budaschnozzle-2015Q1.hex",
			'lulzbot_TAZ_4_FlexyDuallyV1': "TAZ4-5-Dual-or-FlexyDually-Budaschnozzle-2015Q1.hex",
			'lulzbot_TAZ_5_FlexyDuallyV1': "TAZ4-5-Dual-or-FlexyDually-Budaschnozzle-2015Q1.hex",

			#TAZ Hexagon
			'lulzbot_TAZ_4_05nozzle':  "TAZ4-5-Standard-LBHexagon-1.0.0.1.hex",
			'lulzbot_TAZ_4_035nozzle': "TAZ4-5-Standard-LBHexagon-1.0.0.1.hex",
			
			'lulzbot_TAZ_5_05nozzle':  "TAZ4-5-Standard-LBHexagon-1.0.0.1.hex",
			'lulzbot_TAZ_5_035nozzle': "TAZ4-5-Standard-LBHexagon-1.0.0.1.hex",

			'lulzbot_TAZ_4_FlexystruderV2': "TAZ4-5-Flexystruder-LBHexagon-1.0.0.2.hex",
			'lulzbot_TAZ_5_FlexystruderV2': "TAZ4-5-Flexystruder-LBHexagon-1.0.0.2.hex",
			
			'lulzbot_TAZ_4_DualV2': "TAZ4-5-Dual-LBHexagon-1.0.0.1.hex",
			'lulzbot_TAZ_5_DualV2': "TAZ4-5-Dual-LBHexagon-1.0.0.1.hex",
			
			'lulzbot_TAZ_4_FlexyDuallyV2': "TAZ4-5-FlexyDually-LBHexagon-1.0.0.1.hex",
			'lulzbot_TAZ_5_FlexyDuallyV2': "TAZ4-5-FlexyDually-LBHexagon-1.0.0.1.hex",
			
			'lulzbot_TAZ_5_Moarstruder':   "TAZ5-Moarstruder-LBHexagon-1.0.0.2.hex",

			#TAZ 6
			'lulzbot_TAZ_6_Single_v2.1':     "TAZ6_Single_Extruder_v1.0.2.22.hex",
			'lulzbot_TAZ_6_Flexystruder_v2': "TAZ6_Flexystruder_v1.0.2.22.hex",
			'lulzbot_TAZ_6_Moarstruder':     "TAZ6_Moarstruder_v1.0.2.22.hex",
			
			'lulzbot_TAZ_6_Dual_v2':         "TAZ6_Dual_v1.0.2.22.hex",
			'lulzbot_TAZ_6_FlexyDually_v2':  "TAZ6_Dual_v1.0.2.22.hex",
			
			#Mini
			'lulzbot_mini':              "Mini-Single-or-Flexystruder-LBHexagon-v1.1.0.11.hex",
			'lulzbot_mini_flexystruder': "Mini-Single-or-Flexystruder-LBHexagon-v1.1.0.11.hex",
	}
	machine_type = profile.getMachineSetting('machine_type', machineIndex)
	extruders = profile.getMachineSettingFloat('extruder_amount', machineIndex)
	heated_bed = profile.getMachineSetting('has_heated_bed', machineIndex) == 'True'
	baudrate = 250000
	if sys.platform.startswith('linux'):
		baudrate = 115200
	if machine_type == 'ultimaker':
		name = 'MarlinUltimaker'
		if extruders > 2:
			return None
		if heated_bed:
			name += '-HBK'
		name += '-%d' % (baudrate)
		if extruders > 1:
			name += '-dual'
		return resources.getPathForFirmware(name + '.hex')

	if machine_type == 'ultimaker_plus':
		name = 'MarlinUltimaker-UMOP-%d' % (baudrate)
		if extruders > 2:
			return None
		if extruders > 1:
			name += '-dual'
		return resources.getPathForFirmware(name + '.hex')
	if machine_type == 'ultimaker2':
		if extruders > 2:
			return None
		if extruders > 1:
			return resources.getPathForFirmware("MarlinUltimaker2-dual.hex")
		return resources.getPathForFirmware("MarlinUltimaker2.hex")
	if machine_type == 'ultimaker2extended':
		if extruders > 2:
			return None
		if extruders > 1:
			return resources.getPathForFirmware("MarlinUltimaker2extended-dual.hex")
		return resources.getPathForFirmware("MarlinUltimaker2extended.hex")
	if firmwareDict.has_key(machine_type):
		return resources.getPathForFirmware(firmwareDict[machine_type])
	return None
예제 #14
0
def getDefaultFirmware(machineIndex=None):
    firmwareDict = {
        'ultimaker2go': "MarlinUltimaker2go.hex",
        'Witbox': "MarlinWitbox.hex",
        'lulzbot_mini': "Mini-Single-or-Flexystruder-LBHexagon-2015Q2.hex",
        'lulzbot_mini_flexystruder':
        "Mini-Single-or-Flexystruder-LBHexagon-2015Q2.hex",
        'lulzbot_TAZ_4_SingleV1':
        "Taz4-5-Single-or-Flexystruder-Budaschnozzle-2014Q3.hex",
        'lulzbot_TAZ_5_SingleV1':
        "Taz4-5-Single-or-Flexystruder-Budaschnozzle-2014Q3.hex",
        'lulzbot_TAZ_4_05nozzle': "Taz4-Single-Extruder-LBHexagon-2015Q3.hex",
        'lulzbot_TAZ_5_05nozzle': "Taz5-Single-Extruder-LBHexagon-2015Q3.hex",
        'lulzbot_TAZ_4_035nozzle': "Taz4-Single-Extruder-LBHexagon-2015Q3.hex",
        'lulzbot_TAZ_5_035nozzle': "Taz5-Single-Extruder-LBHexagon-2015Q3.hex",
        'lulzbot_TAZ_4_FlexystruderV1':
        "Taz4-5-Single-or-Flexystruder-Budaschnozzle-2014Q3.hex",
        'lulzbot_TAZ_5_FlexystruderV1':
        "Taz4-5-Single-or-Flexystruder-Budaschnozzle-2014Q3.hex",
        'lulzbot_TAZ_4_FlexystruderV2':
        "Taz4-5-Flexystruder-LBHexagon-2015Q3.hex",
        'lulzbot_TAZ_5_FlexystruderV2':
        "Taz4-5-Flexystruder-LBHexagon-2015Q3.hex",
        'lulzbot_TAZ_4_DualV1':
        "Taz4-5-Dual-or-FlexyDually-Budaschnozzle-2015Q1.hex",
        'lulzbot_TAZ_5_DualV1':
        "Taz4-5-Dual-or-FlexyDually-Budaschnozzle-2015Q1.hex",
        'lulzbot_TAZ_4_DualV2': "Taz4-5-Dual-LBHexagon-2015Q3.hex",
        'lulzbot_TAZ_5_DualV2': "Taz4-5-Dual-LBHexagon-2015Q3.hex",
        'lulzbot_TAZ_4_FlexyDuallyV1':
        "Taz4-5-Dual-or-FlexyDually-Budaschnozzle-2015Q1.hex",
        'lulzbot_TAZ_5_FlexyDuallyV1':
        "Taz4-5-Dual-or-FlexyDually-Budaschnozzle-2015Q1.hex",
        'lulzbot_TAZ_4_FlexyDuallyV2':
        "Taz4-5-FlexyDually-LBHexagon-2015Q3.hex",
        'lulzbot_TAZ_5_FlexyDuallyV2':
        "Taz4-5-FlexyDually-LBHexagon-2015Q3.hex"
    }
    machine_type = profile.getMachineSetting('machine_type', machineIndex)
    extruders = profile.getMachineSettingFloat('extruder_amount', machineIndex)
    heated_bed = profile.getMachineSetting('has_heated_bed',
                                           machineIndex) == 'True'
    baudrate = 250000
    if sys.platform.startswith('linux'):
        baudrate = 115200
    if machine_type == 'ultimaker':
        name = 'MarlinUltimaker'
        if extruders > 2:
            return None
        if heated_bed:
            name += '-HBK'
        name += '-%d' % (baudrate)
        if extruders > 1:
            name += '-dual'
        return resources.getPathForFirmware(name + '.hex')

    if machine_type == 'ultimaker_plus':
        name = 'MarlinUltimaker-UMOP-%d' % (baudrate)
        if extruders > 2:
            return None
        if extruders > 1:
            name += '-dual'
        return resources.getPathForFirmware(name + '.hex')
    if machine_type == 'ultimaker2':
        if extruders > 2:
            return None
        if extruders > 1:
            return resources.getPathForFirmware("MarlinUltimaker2-dual.hex")
        return resources.getPathForFirmware("MarlinUltimaker2.hex")
    if machine_type == 'ultimaker2extended':
        if extruders > 2:
            return None
        if extruders > 1:
            return resources.getPathForFirmware(
                "MarlinUltimaker2extended-dual.hex")
        return resources.getPathForFirmware("MarlinUltimaker2extended.hex")
    if firmwareDict.has_key(machine_type):
        return resources.getPathForFirmware(firmwareDict[machine_type])
    return None