Scale feedrate (mm/s to deg/s) for SCARA
This commit is contained in:
@ -130,6 +130,8 @@ typedef struct {
|
||||
|
||||
} block_t;
|
||||
|
||||
#define HAS_POSITION_FLOAT (ENABLED(LIN_ADVANCE) || ENABLED(SCARA_FEEDRATE_SCALING))
|
||||
|
||||
#define BLOCK_MOD(n) ((n)&(BLOCK_BUFFER_SIZE-1))
|
||||
|
||||
class Planner {
|
||||
@ -194,8 +196,11 @@ class Planner {
|
||||
#endif
|
||||
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
static float extruder_advance_K,
|
||||
position_float[XYZE];
|
||||
static float extruder_advance_K;
|
||||
#endif
|
||||
|
||||
#if HAS_POSITION_FLOAT
|
||||
static float position_float[XYZE];
|
||||
#endif
|
||||
|
||||
#if ENABLED(SKEW_CORRECTION)
|
||||
@ -417,7 +422,7 @@ class Planner {
|
||||
* millimeters - the length of the movement, if known
|
||||
*/
|
||||
static void _buffer_steps(const int32_t (&target)[XYZE]
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
#if HAS_POSITION_FLOAT
|
||||
, const float (&target_float)[XYZE]
|
||||
#endif
|
||||
, float fr_mm_s, const uint8_t extruder, const float &millimeters=0.0
|
||||
|
Reference in New Issue
Block a user