Merge branch 'Marlin_v1' of https://github.com/ErikZalm/Marlin into Marlin_v1

This commit is contained in:
Neil Darlow
2014-04-06 19:15:29 +01:00
7 changed files with 48 additions and 33 deletions

View File

@@ -1119,7 +1119,7 @@ void refresh_cmd_timeout(void)
current_position[E_AXIS]+=retract_length/volumetric_multiplier[active_extruder];
plan_set_e_position(current_position[E_AXIS]);
float oldFeedrate = feedrate;
feedrate=retract_feedrate;
feedrate=retract_feedrate*60;
retracted=true;
prepare_move();
current_position[Z_AXIS]-=retract_zlift;
@@ -1137,7 +1137,7 @@ void refresh_cmd_timeout(void)
current_position[E_AXIS]-=(retract_length+retract_recover_length)/volumetric_multiplier[active_extruder];
plan_set_e_position(current_position[E_AXIS]);
float oldFeedrate = feedrate;
feedrate=retract_recover_feedrate;
feedrate=retract_recover_feedrate*60;
retracted=false;
prepare_move();
feedrate = oldFeedrate;
@@ -2270,8 +2270,6 @@ void process_commands()
SERIAL_ECHO_START;
SERIAL_ECHO(MSG_M200_INVALID_EXTRUDER);
}
SERIAL_ECHOLN(tmp_extruder);
break;
}
volumetric_multiplier[tmp_extruder] = 1 / area;
}
@@ -2343,7 +2341,7 @@ void process_commands()
break;
#endif
#ifdef FWRETRACT
case 207: //M207 - set retract length S[positive mm] F[feedrate mm/sec] Z[additional zlift/hop]
case 207: //M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop]
{
if(code_seen('S'))
{
@@ -2351,14 +2349,14 @@ void process_commands()
}
if(code_seen('F'))
{
retract_feedrate = code_value() ;
retract_feedrate = code_value()/60 ;
}
if(code_seen('Z'))
{
retract_zlift = code_value() ;
}
}break;
case 208: // M208 - set retract recover length S[positive mm surplus to the M207 S*] F[feedrate mm/sec]
case 208: // M208 - set retract recover length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
{
if(code_seen('S'))
{
@@ -2366,7 +2364,7 @@ void process_commands()
}
if(code_seen('F'))
{
retract_recover_feedrate = code_value() ;
retract_recover_feedrate = code_value()/60 ;
}
}break;
case 209: // M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction.
@@ -3053,7 +3051,16 @@ void process_commands()
// Set the new active extruder and position
active_extruder = tmp_extruder;
#endif //else DUAL_X_CARRIAGE
#ifdef DELTA
calculate_delta(current_position); // change cartesian kinematic to delta kinematic;
//sent position to plan_set_position();
plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS],current_position[E_AXIS]);
#else
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
#endif
// Move to the old position if 'F' was in the parameters
if(make_move && Stopped == false) {
prepare_move();