corexy: Fix minimum halt velocity
Due to the corexy kinematics, the individual steppers may have a velocity of sqrt(2) times faster than the cartesian velocity _and_ can have an acceleration of sqrt(2) times faster. Make sure to calculate in the higher acceleration. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8c7f1546ab
commit
75b73b09d6
|
@ -28,8 +28,9 @@ class CoreXYKinematics:
|
||||||
# Setup stepper max halt velocity
|
# Setup stepper max halt velocity
|
||||||
max_halt_velocity = toolhead.get_max_axis_halt()
|
max_halt_velocity = toolhead.get_max_axis_halt()
|
||||||
max_xy_halt_velocity = max_halt_velocity * math.sqrt(2.)
|
max_xy_halt_velocity = max_halt_velocity * math.sqrt(2.)
|
||||||
self.rails[0].set_max_jerk(max_xy_halt_velocity, max_accel)
|
max_xy_accel = max_accel * math.sqrt(2.)
|
||||||
self.rails[1].set_max_jerk(max_xy_halt_velocity, max_accel)
|
self.rails[0].set_max_jerk(max_xy_halt_velocity, max_xy_accel)
|
||||||
|
self.rails[1].set_max_jerk(max_xy_halt_velocity, max_xy_accel)
|
||||||
self.rails[2].set_max_jerk(
|
self.rails[2].set_max_jerk(
|
||||||
min(max_halt_velocity, self.max_z_velocity), self.max_z_accel)
|
min(max_halt_velocity, self.max_z_velocity), self.max_z_accel)
|
||||||
def get_steppers(self, flags=""):
|
def get_steppers(self, flags=""):
|
||||||
|
|
Loading…
Reference in New Issue