Fixes #56 - Adjust the flowrate of bridges with the speed setting

This commit is contained in:
daid 2012-04-16 12:26:55 +02:00
parent 507c932207
commit 3ca97578c3
2 changed files with 5 additions and 2 deletions

View file

@ -90,6 +90,9 @@ def calcLayerSkip(setting):
return 0
return int(math.ceil((bottomThickness - layerThickness) / layerThickness + 0.0001) - 1)
def calculateBridgeFlow(setting):
return (profile.getProfileSettingFloat('bridge_speed') / 100) * (profile.getProfileSettingFloat('bridge_material_amount') / 100)
def getProfileInformation():
return {
'carve': {
@ -179,7 +182,7 @@ def getProfileInformation():
'Activate_Speed': "True",
'Add_Flow_Rate': "True",
'Bridge_Feed_Rate_Multiplier_ratio': storedPercentSetting('bridge_speed'),
'Bridge_Flow_Rate_Multiplier_ratio': storedPercentSetting('bridge_material_amount'),
'Bridge_Flow_Rate_Multiplier_ratio': calculateBridgeFlow,
'Duty_Cyle_at_Beginning_portion': DEFSET,
'Duty_Cyle_at_Ending_portion': DEFSET,
'Feed_Rate_mm/s': storedSettingFloat("print_speed"),

View file

@ -65,7 +65,7 @@ profileDefaultSettings = {
'raft_margin': '5',
'raft_base_material_amount': '100',
'raft_interface_material_amount': '100',
'bottom_thickness': '0.0',
'bottom_thickness': '0.3',
}
preferencesDefaultSettings = {
'wizardDone': 'False',