Removed dead code.

Make sure bed leveling stays on after export to SD card.
Put bridge speed into MatterSlice.
Default to slower bridge speed.
This commit is contained in:
larsbrubaker 2014-06-17 17:57:50 -07:00
parent 47e89e8956
commit 1db346d024
4 changed files with 7 additions and 13 deletions

View file

@ -476,12 +476,6 @@ namespace MatterHackers.MatterControl
disablePrintLevelingButton.VAnchor = VAnchor.ParentCenter;
disablePrintLevelingButton.Click += new ButtonBase.ButtonEventHandler(disablePrintLeveling_Click);
CheckBox doLevelingCheckBox = new CheckBox(LocalizedString.Get("Enable Automatic Print Leveling"));
doLevelingCheckBox.Margin = new BorderDouble(left: 3);
doLevelingCheckBox.TextColor = ActiveTheme.Instance.PrimaryTextColor;
doLevelingCheckBox.VAnchor = VAnchor.ParentCenter;
doLevelingCheckBox.Checked = ActivePrinterProfile.Instance.DoPrintLeveling;
printLevelingStatusLabel = new TextWidget ("");
printLevelingStatusLabel.AutoExpandBoundsToText = true;
printLevelingStatusLabel.TextColor = ActiveTheme.Instance.PrimaryTextColor;
@ -491,16 +485,11 @@ namespace MatterHackers.MatterControl
hSpacer.HAnchor = HAnchor.ParentLeftRight;
buttonBar.AddChild(levelingIcon);
//buttonBar.AddChild(doLevelingCheckBox);
buttonBar.AddChild (printLevelingStatusLabel);
buttonBar.AddChild (hSpacer);
buttonBar.AddChild(enablePrintLevelingButton);
buttonBar.AddChild(disablePrintLevelingButton);
buttonBar.AddChild(runPrintLevelingButton);
doLevelingCheckBox.CheckedStateChanged += (sender, e) =>
{
ActivePrinterProfile.Instance.DoPrintLeveling = doLevelingCheckBox.Checked;
};
ActivePrinterProfile.Instance.DoPrintLevelingChanged.RegisterEvent((sender, e) =>
{
SetPrintLevelButtonVisiblity();
@ -564,7 +553,7 @@ namespace MatterHackers.MatterControl
case PrinterConnectionAndCommunication.CommunicationStates.AttemptingToConnect:
case PrinterConnectionAndCommunication.CommunicationStates.FailedToConnect:
eePromControlsContainer.SetEnableLevel(DisableableWidget.EnableLevel.Disabled);
printLevelContainer.SetEnableLevel(DisableableWidget.EnableLevel.ConfigOnly);
printLevelContainer.SetEnableLevel(DisableableWidget.EnableLevel.Enabled);
terminalCommunicationsContainer.SetEnableLevel(DisableableWidget.EnableLevel.Enabled);
break;

View file

@ -243,6 +243,9 @@ namespace MatterHackers.MatterControl
}
}
unleveledGCode.Save(dest);
// Make sure we turn this back on as it can get turned off by the LevelWizard2Point.ProcessCommand and it was on.
ActivePrinterProfile.Instance.DoPrintLeveling = true;
}
else
{

View file

@ -136,6 +136,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
//infillSpeed=50 # mm/s.
new MapItem("infillSpeed", "infill_speed"),
new MapItem("bridgeSpeed", "bridge_speed"),
//infillStartingAngle=45
new MapItem("infillStartingAngle", "fill_angle"),

View file

@ -7,7 +7,7 @@ bottom_solid_layers = 3
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 60
bridge_speed = 20
brim_width = 0
build_height = 0
cancel_gcode =