Use cs.minimumfeedrate from ConfigurationStore.
This commit is contained in:
parent
b8fefceb4d
commit
26e2fd1c76
@ -103,7 +103,7 @@ void Config_PrintSettings(uint8_t level)
|
||||
echomagic, echomagic, cs.max_acceleration_units_per_sq_second_normal[X_AXIS], cs.max_acceleration_units_per_sq_second_normal[Y_AXIS], cs.max_acceleration_units_per_sq_second_normal[Z_AXIS], cs.max_acceleration_units_per_sq_second_normal[E_AXIS],
|
||||
echomagic, echomagic, max_acceleration_units_per_sq_second_silent[X_AXIS], max_acceleration_units_per_sq_second_silent[Y_AXIS], max_acceleration_units_per_sq_second_silent[Z_AXIS], max_acceleration_units_per_sq_second_silent[E_AXIS],
|
||||
echomagic, echomagic, cs.acceleration, cs.retract_acceleration,
|
||||
echomagic, echomagic, minimumfeedrate, mintravelfeedrate, minsegmenttime, max_jerk[X_AXIS], max_jerk[Y_AXIS], max_jerk[Z_AXIS], max_jerk[E_AXIS],
|
||||
echomagic, echomagic, cs.minimumfeedrate, mintravelfeedrate, minsegmenttime, max_jerk[X_AXIS], max_jerk[Y_AXIS], max_jerk[Z_AXIS], max_jerk[E_AXIS],
|
||||
echomagic, echomagic, add_homing[X_AXIS], add_homing[Y_AXIS], add_homing[Z_AXIS]
|
||||
#else //TMC2130
|
||||
printf_P(PSTR(
|
||||
@ -118,7 +118,7 @@ void Config_PrintSettings(uint8_t level)
|
||||
echomagic, echomagic, max_feedrate[X_AXIS], max_feedrate[Y_AXIS], max_feedrate[Z_AXIS], max_feedrate[E_AXIS],
|
||||
echomagic, echomagic, max_acceleration_units_per_sq_second[X_AXIS], max_acceleration_units_per_sq_second[Y_AXIS], max_acceleration_units_per_sq_second[Z_AXIS], max_acceleration_units_per_sq_second[E_AXIS],
|
||||
echomagic, echomagic, cs.acceleration, cs.retract_acceleration,
|
||||
echomagic, echomagic, minimumfeedrate, mintravelfeedrate, minsegmenttime, max_jerk[X_AXIS], max_jerk[Y_AXIS], max_jerk[Z_AXIS], max_jerk[E_AXIS],
|
||||
echomagic, echomagic, cs.minimumfeedrate, mintravelfeedrate, minsegmenttime, max_jerk[X_AXIS], max_jerk[Y_AXIS], max_jerk[Z_AXIS], max_jerk[E_AXIS],
|
||||
echomagic, echomagic, add_homing[X_AXIS], add_homing[Y_AXIS], add_homing[Z_AXIS]
|
||||
#endif //TMC2130
|
||||
);
|
||||
|
@ -5961,7 +5961,7 @@ Sigma_Exit:
|
||||
break;
|
||||
case 205: //M205 advanced settings: minimum travel speed S=while printing T=travel only, B=minimum segment time X= maximum xy jerk, Z=maximum Z jerk
|
||||
{
|
||||
if(code_seen('S')) minimumfeedrate = code_value();
|
||||
if(code_seen('S')) cs.minimumfeedrate = code_value();
|
||||
if(code_seen('T')) mintravelfeedrate = code_value();
|
||||
if(code_seen('B')) minsegmenttime = code_value() ;
|
||||
if(code_seen('X')) max_jerk[X_AXIS] = max_jerk[Y_AXIS] = code_value();
|
||||
|
@ -83,7 +83,6 @@ float* max_feedrate = cs.max_feedrate_normal;
|
||||
unsigned long max_acceleration_units_per_sq_second_silent[NUM_AXIS];
|
||||
unsigned long* max_acceleration_units_per_sq_second = cs.max_acceleration_units_per_sq_second_normal;
|
||||
|
||||
float minimumfeedrate;
|
||||
// Jerk is a maximum immediate velocity change.
|
||||
float max_jerk[NUM_AXIS];
|
||||
float mintravelfeedrate;
|
||||
@ -914,7 +913,7 @@ block->steps_y.wide = labs((target[X_AXIS]-position[X_AXIS]) - (target[Y_AXIS]-p
|
||||
}
|
||||
else
|
||||
{
|
||||
if(feed_rate<minimumfeedrate) feed_rate=minimumfeedrate;
|
||||
if(feed_rate<cs.minimumfeedrate) feed_rate=cs.minimumfeedrate;
|
||||
}
|
||||
|
||||
/* This part of the code calculates the total length of the movement.
|
||||
|
@ -169,7 +169,6 @@ extern float* max_feedrate;
|
||||
extern unsigned long max_acceleration_units_per_sq_second_silent[NUM_AXIS];
|
||||
extern unsigned long* max_acceleration_units_per_sq_second;
|
||||
|
||||
extern float minimumfeedrate;
|
||||
// Jerk is a maximum immediate velocity change.
|
||||
extern float max_jerk[NUM_AXIS];
|
||||
extern float mintravelfeedrate;
|
||||
|
Loading…
Reference in New Issue
Block a user