Fix feedrate in gcode_T (max_feedrate is mm/s)
This commit is contained in:
parent
9030ceec1d
commit
ef3bef6b9e
@ -6633,11 +6633,13 @@ inline void gcode_T(uint8_t tmp_extruder) {
|
|||||||
if (next_feedrate > 0.0) stored_feedrate = feedrate = next_feedrate;
|
if (next_feedrate > 0.0) stored_feedrate = feedrate = next_feedrate;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#ifdef XY_TRAVEL_SPEED
|
feedrate =
|
||||||
feedrate = XY_TRAVEL_SPEED;
|
#ifdef XY_TRAVEL_SPEED
|
||||||
#else
|
XY_TRAVEL_SPEED
|
||||||
feedrate = min(planner.max_feedrate[X_AXIS], planner.max_feedrate[Y_AXIS]);
|
#else
|
||||||
#endif
|
min(planner.max_feedrate[X_AXIS], planner.max_feedrate[Y_AXIS]) * 60
|
||||||
|
#endif
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tmp_extruder != active_extruder) {
|
if (tmp_extruder != active_extruder) {
|
||||||
|
@ -80,7 +80,7 @@ block_t Planner::block_buffer[BLOCK_BUFFER_SIZE];
|
|||||||
volatile uint8_t Planner::block_buffer_head = 0; // Index of the next block to be pushed
|
volatile uint8_t Planner::block_buffer_head = 0; // Index of the next block to be pushed
|
||||||
volatile uint8_t Planner::block_buffer_tail = 0;
|
volatile uint8_t Planner::block_buffer_tail = 0;
|
||||||
|
|
||||||
float Planner::max_feedrate[NUM_AXIS]; // Max speeds in mm per minute
|
float Planner::max_feedrate[NUM_AXIS]; // Max speeds in mm per second
|
||||||
float Planner::axis_steps_per_mm[NUM_AXIS];
|
float Planner::axis_steps_per_mm[NUM_AXIS];
|
||||||
unsigned long Planner::max_acceleration_steps_per_s2[NUM_AXIS];
|
unsigned long Planner::max_acceleration_steps_per_s2[NUM_AXIS];
|
||||||
unsigned long Planner::max_acceleration_mm_per_s2[NUM_AXIS]; // Use M201 to override by software
|
unsigned long Planner::max_acceleration_mm_per_s2[NUM_AXIS]; // Use M201 to override by software
|
||||||
|
@ -115,7 +115,7 @@ class Planner {
|
|||||||
static volatile uint8_t block_buffer_head; // Index of the next block to be pushed
|
static volatile uint8_t block_buffer_head; // Index of the next block to be pushed
|
||||||
static volatile uint8_t block_buffer_tail;
|
static volatile uint8_t block_buffer_tail;
|
||||||
|
|
||||||
static float max_feedrate[NUM_AXIS]; // Max speeds in mm per minute
|
static float max_feedrate[NUM_AXIS]; // Max speeds in mm per second
|
||||||
static float axis_steps_per_mm[NUM_AXIS];
|
static float axis_steps_per_mm[NUM_AXIS];
|
||||||
static unsigned long max_acceleration_steps_per_s2[NUM_AXIS];
|
static unsigned long max_acceleration_steps_per_s2[NUM_AXIS];
|
||||||
static unsigned long max_acceleration_mm_per_s2[NUM_AXIS]; // Use M201 to override by software
|
static unsigned long max_acceleration_mm_per_s2[NUM_AXIS]; // Use M201 to override by software
|
||||||
|
Loading…
Reference in New Issue
Block a user