Replace division in planner with multiplication
This commit is contained in:
@@ -121,6 +121,7 @@ class Planner {
|
||||
|
||||
static float max_feedrate_mm_s[NUM_AXIS]; // Max speeds in mm per second
|
||||
static float axis_steps_per_mm[NUM_AXIS];
|
||||
static float steps_to_mm[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
|
||||
|
||||
@@ -142,7 +143,7 @@ class Planner {
|
||||
|
||||
/**
|
||||
* The current position of the tool in absolute steps
|
||||
* Reclculated if any axis_steps_per_mm are changed by gcode
|
||||
* Recalculated if any axis_steps_per_mm are changed by gcode
|
||||
*/
|
||||
static long position[NUM_AXIS];
|
||||
|
||||
@@ -187,6 +188,7 @@ class Planner {
|
||||
*/
|
||||
|
||||
static void reset_acceleration_rates();
|
||||
static void refresh_positioning();
|
||||
|
||||
// Manage fans, paste pressure, etc.
|
||||
static void check_axes_activity();
|
||||
|
Reference in New Issue
Block a user