diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-10-25 19:30:01 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-10-31 11:05:52 -0400 |
commit | 2904a0bbac514bcde6b758ba002bb1e32a28106d (patch) | |
tree | 623f893d82e577c318ddafb05ecb383892c22747 /klippy/cartesian.py | |
parent | 6a96e83ea923ebd0d3a84da218afda020b8b9612 (diff) | |
download | kutter-2904a0bbac514bcde6b758ba002bb1e32a28106d.tar.gz kutter-2904a0bbac514bcde6b758ba002bb1e32a28106d.tar.xz kutter-2904a0bbac514bcde6b758ba002bb1e32a28106d.zip |
cartesian: Rename step_dist to move_step_d
Don't use step_dist for the "distance along the line of movement per
step" as it's too similar to the stepper.step_dist variable. Use the
name "move_step_d" instead.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/cartesian.py')
-rw-r--r-- | klippy/cartesian.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/cartesian.py b/klippy/cartesian.py index 60fe9976..c3a34db7 100644 --- a/klippy/cartesian.py +++ b/klippy/cartesian.py @@ -109,14 +109,14 @@ class CartKinematics: steps = -steps mcu_time, so = self.steppers[i].prep_move(move_time, sdir) - step_dist = move.move_d / steps + move_step_d = move.move_d / steps step_offset = 0.5 # Acceleration steps #t = sqrt(2*pos/accel + (start_v/accel)**2) - start_v/accel accel_time_offset = move.start_v * inv_accel accel_sqrt_offset = accel_time_offset**2 - accel_multiplier = 2.0 * step_dist * inv_accel + accel_multiplier = 2.0 * move_step_d * inv_accel accel_steps = move.accel_r * steps step_offset = so.step_sqrt( mcu_time - accel_time_offset, accel_steps, step_offset @@ -124,7 +124,7 @@ class CartKinematics: mcu_time += move.accel_t # Cruising steps #t = pos/cruise_v - cruise_multiplier = step_dist * inv_cruise_v + cruise_multiplier = move_step_d * inv_cruise_v cruise_steps = move.cruise_r * steps step_offset = so.step_factor( mcu_time, cruise_steps, step_offset, cruise_multiplier) |