Scale feedrate (mm/s to deg/s) for SCARA

This commit is contained in:
Scott Lahteine
2018-04-05 15:47:56 -05:00
parent 051303ad42
commit e8e60263c8
7 changed files with 165 additions and 48 deletions

View File

@ -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