Optimize load
Don't start moving the E-motor immediately Instead of starting the E-motor move when the load to extruder starts, we can start when we are loading to the fsensor. At that stage the MMU has changed from a fast load to a slow load.
This commit is contained in:
parent
2f0ceabce5
commit
47e57646ea
|
|
@ -799,7 +799,6 @@ void MMU2::ReportError(ErrorCode ec, uint8_t res) {
|
||||||
case ProgressCode::UnloadingToFinda:
|
case ProgressCode::UnloadingToFinda:
|
||||||
unloadFilamentStarted = false;
|
unloadFilamentStarted = false;
|
||||||
break;
|
break;
|
||||||
case ProgressCode::FeedingToBondtech:
|
|
||||||
case ProgressCode::FeedingToFSensor:
|
case ProgressCode::FeedingToFSensor:
|
||||||
// FSENSOR error during load. Make sure E-motor stops moving.
|
// FSENSOR error during load. Make sure E-motor stops moving.
|
||||||
loadFilamentStarted = false;
|
loadFilamentStarted = false;
|
||||||
|
|
@ -863,7 +862,7 @@ void MMU2::OnMMUProgressMsg(ProgressCode pc){
|
||||||
current_position[E_AXIS] -= MMU2_RETRY_UNLOAD_TO_FINDA_BOWDEN_LENGTH; // Roughly same distance as MMU plans
|
current_position[E_AXIS] -= MMU2_RETRY_UNLOAD_TO_FINDA_BOWDEN_LENGTH; // Roughly same distance as MMU plans
|
||||||
plan_buffer_line_curposXYZE(MMU2_UNLOAD_TO_FINDA_FEED_RATE);
|
plan_buffer_line_curposXYZE(MMU2_UNLOAD_TO_FINDA_FEED_RATE);
|
||||||
break;
|
break;
|
||||||
case ProgressCode::FeedingToBondtech:
|
case ProgressCode::FeedingToFSensor:
|
||||||
// prepare for the movement of the E-motor
|
// prepare for the movement of the E-motor
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
loadFilamentStarted = true;
|
loadFilamentStarted = true;
|
||||||
|
|
@ -890,7 +889,6 @@ void MMU2::OnMMUProgressMsg(ProgressCode pc){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ProgressCode::FeedingToBondtech:
|
|
||||||
case ProgressCode::FeedingToFSensor:
|
case ProgressCode::FeedingToFSensor:
|
||||||
if (loadFilamentStarted) {
|
if (loadFilamentStarted) {
|
||||||
switch (WhereIsFilament()) {
|
switch (WhereIsFilament()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue