mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-10-26 00:36:08 +02:00
mcu: Remove max_stepper_error config parameter
Use a regular code constant - MAX_STEPCOMPRESS_ERROR in stepper.py. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -8,6 +8,9 @@ All dates in this document are approximate.
|
||||
|
||||
## Changes
|
||||
|
||||
20251003: Support for the undocumented `max_stepper_error` option in
|
||||
the `[printer]` config section has been removed.
|
||||
|
||||
20250916: The definitions of EI, 2HUMP_EI, and 3HUMP_EI input shapers
|
||||
were updated. For best performance it is recommended to recalibrate
|
||||
input shapers, especially if some of these shapers are currently used.
|
||||
|
||||
@@ -603,9 +603,6 @@ class MCU:
|
||||
self._restart_cmds = []
|
||||
self._init_cmds = []
|
||||
self._mcu_freq = 0.
|
||||
# Move command queuing
|
||||
self._max_stepper_error = config.getfloat('max_stepper_error', 0.000025,
|
||||
minval=0.)
|
||||
self._reserved_move_slots = 0
|
||||
# Stats
|
||||
self._get_status_info = {}
|
||||
@@ -871,8 +868,6 @@ class MCU:
|
||||
return self.print_time_to_clock(t) + slot
|
||||
def seconds_to_clock(self, time):
|
||||
return int(time * self._mcu_freq)
|
||||
def get_max_stepper_error(self):
|
||||
return self._max_stepper_error
|
||||
def min_schedule_time(self):
|
||||
return MIN_SCHEDULE_TIME
|
||||
def max_nominal_duration(self):
|
||||
|
||||
@@ -16,6 +16,7 @@ class error(Exception):
|
||||
|
||||
MIN_BOTH_EDGE_DURATION = 0.000000500
|
||||
MIN_OPTIMIZED_BOTH_EDGE_DURATION = 0.000000150
|
||||
MAX_STEPCOMPRESS_ERROR = 0.000025
|
||||
|
||||
# Interface to low-level mcu and chelper code
|
||||
class MCU_stepper:
|
||||
@@ -122,8 +123,7 @@ class MCU_stepper:
|
||||
self._get_position_cmd = self._mcu.lookup_query_command(
|
||||
"stepper_get_position oid=%c",
|
||||
"stepper_position oid=%c pos=%i", oid=self._oid)
|
||||
max_error = self._mcu.get_max_stepper_error()
|
||||
max_error_ticks = self._mcu.seconds_to_clock(max_error)
|
||||
max_error_ticks = self._mcu.seconds_to_clock(MAX_STEPCOMPRESS_ERROR)
|
||||
ffi_main, ffi_lib = chelper.get_ffi()
|
||||
ffi_lib.stepcompress_fill(self._stepqueue, self._oid, max_error_ticks,
|
||||
step_cmd_tag, dir_cmd_tag)
|
||||
|
||||
Reference in New Issue
Block a user