Use cs.retract_acceleration from ConfigurationStore.
This commit is contained in:
parent
7dbe0afdc4
commit
b8fefceb4d
@ -102,7 +102,7 @@ void Config_PrintSettings(uint8_t level)
|
|||||||
echomagic, echomagic, max_feedrate_silent[X_AXIS], max_feedrate_silent[Y_AXIS], max_feedrate_silent[Z_AXIS], max_feedrate_silent[E_AXIS],
|
echomagic, echomagic, max_feedrate_silent[X_AXIS], max_feedrate_silent[Y_AXIS], max_feedrate_silent[Z_AXIS], max_feedrate_silent[E_AXIS],
|
||||||
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, 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, 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, retract_acceleration,
|
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, 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]
|
echomagic, echomagic, add_homing[X_AXIS], add_homing[Y_AXIS], add_homing[Z_AXIS]
|
||||||
#else //TMC2130
|
#else //TMC2130
|
||||||
@ -117,7 +117,7 @@ void Config_PrintSettings(uint8_t level)
|
|||||||
echomagic, echomagic, cs.axis_steps_per_unit[X_AXIS], cs.axis_steps_per_unit[Y_AXIS], cs.axis_steps_per_unit[Z_AXIS], cs.axis_steps_per_unit[E_AXIS],
|
echomagic, echomagic, cs.axis_steps_per_unit[X_AXIS], cs.axis_steps_per_unit[Y_AXIS], cs.axis_steps_per_unit[Z_AXIS], cs.axis_steps_per_unit[E_AXIS],
|
||||||
echomagic, echomagic, max_feedrate[X_AXIS], max_feedrate[Y_AXIS], max_feedrate[Z_AXIS], max_feedrate[E_AXIS],
|
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, 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, retract_acceleration,
|
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, 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]
|
echomagic, echomagic, add_homing[X_AXIS], add_homing[Y_AXIS], add_homing[Z_AXIS]
|
||||||
#endif //TMC2130
|
#endif //TMC2130
|
||||||
|
@ -11,7 +11,7 @@ typedef struct
|
|||||||
float max_feedrate_normal[4];
|
float max_feedrate_normal[4];
|
||||||
unsigned long max_acceleration_units_per_sq_second_normal[4];
|
unsigned long max_acceleration_units_per_sq_second_normal[4];
|
||||||
float acceleration; //!< Normal acceleration mm/s^2 THIS IS THE DEFAULT ACCELERATION for all moves. M204 SXXXX
|
float acceleration; //!< Normal acceleration mm/s^2 THIS IS THE DEFAULT ACCELERATION for all moves. M204 SXXXX
|
||||||
float retract_acceleration;
|
float retract_acceleration; //!< mm/s^2 filament pull-pack and push-forward while standing still in the other axis M204 TXXXX
|
||||||
float minimumfeedrate;
|
float minimumfeedrate;
|
||||||
float mintravelfeedrate;
|
float mintravelfeedrate;
|
||||||
unsigned long minsegmenttime;
|
unsigned long minsegmenttime;
|
||||||
|
@ -5944,13 +5944,13 @@ Sigma_Exit:
|
|||||||
cs.acceleration = code_value();
|
cs.acceleration = code_value();
|
||||||
// Interpret the T value as retract acceleration in the old Marlin format.
|
// Interpret the T value as retract acceleration in the old Marlin format.
|
||||||
if(code_seen('T'))
|
if(code_seen('T'))
|
||||||
retract_acceleration = code_value();
|
cs.retract_acceleration = code_value();
|
||||||
} else {
|
} else {
|
||||||
// New acceleration format, compatible with the upstream Marlin.
|
// New acceleration format, compatible with the upstream Marlin.
|
||||||
if(code_seen('P'))
|
if(code_seen('P'))
|
||||||
cs.acceleration = code_value();
|
cs.acceleration = code_value();
|
||||||
if(code_seen('R'))
|
if(code_seen('R'))
|
||||||
retract_acceleration = code_value();
|
cs.retract_acceleration = code_value();
|
||||||
if(code_seen('T')) {
|
if(code_seen('T')) {
|
||||||
// Interpret the T value as the travel acceleration in the new Marlin format.
|
// Interpret the T value as the travel acceleration in the new Marlin format.
|
||||||
//FIXME Prusa3D firmware currently does not support travel acceleration value independent from the extruding acceleration value.
|
//FIXME Prusa3D firmware currently does not support travel acceleration value independent from the extruding acceleration value.
|
||||||
|
@ -84,7 +84,6 @@ 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;
|
unsigned long* max_acceleration_units_per_sq_second = cs.max_acceleration_units_per_sq_second_normal;
|
||||||
|
|
||||||
float minimumfeedrate;
|
float minimumfeedrate;
|
||||||
float retract_acceleration; // mm/s^2 filament pull-pack and push-forward while standing still in the other axis M204 TXXXX
|
|
||||||
// Jerk is a maximum immediate velocity change.
|
// Jerk is a maximum immediate velocity change.
|
||||||
float max_jerk[NUM_AXIS];
|
float max_jerk[NUM_AXIS];
|
||||||
float mintravelfeedrate;
|
float mintravelfeedrate;
|
||||||
@ -1004,7 +1003,7 @@ Having the real displacement of the head, we can calculate the total movement le
|
|||||||
float steps_per_mm = block->step_event_count.wide/block->millimeters;
|
float steps_per_mm = block->step_event_count.wide/block->millimeters;
|
||||||
if(block->steps_x.wide == 0 && block->steps_y.wide == 0 && block->steps_z.wide == 0)
|
if(block->steps_x.wide == 0 && block->steps_y.wide == 0 && block->steps_z.wide == 0)
|
||||||
{
|
{
|
||||||
block->acceleration_st = ceil(retract_acceleration * steps_per_mm); // convert to: acceleration steps/sec^2
|
block->acceleration_st = ceil(cs.retract_acceleration * steps_per_mm); // convert to: acceleration steps/sec^2
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -170,7 +170,6 @@ extern unsigned long max_acceleration_units_per_sq_second_silent[NUM_AXIS];
|
|||||||
extern unsigned long* max_acceleration_units_per_sq_second;
|
extern unsigned long* max_acceleration_units_per_sq_second;
|
||||||
|
|
||||||
extern float minimumfeedrate;
|
extern float minimumfeedrate;
|
||||||
extern float retract_acceleration; // mm/s^2 filament pull-pack and push-forward while standing still in the other axis M204 TXXXX
|
|
||||||
// Jerk is a maximum immediate velocity change.
|
// Jerk is a maximum immediate velocity change.
|
||||||
extern float max_jerk[NUM_AXIS];
|
extern float max_jerk[NUM_AXIS];
|
||||||
extern float mintravelfeedrate;
|
extern float mintravelfeedrate;
|
||||||
|
Loading…
Reference in New Issue
Block a user