Skip to content

Commit 3120430

Browse files
committed
Added multi sample hominh
You can now home with multiple samples, just like probes
1 parent 283c74d commit 3120430

6 files changed

Lines changed: 503 additions & 64 deletions

File tree

docs/Config_Reference.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,28 @@ position_max:
338338
#use_sensorless_homing:
339339
# If true, disables the second home action if homing_retract_dist > 0.
340340
# The default is true if endstop_pin is configured to use virtual_endstop
341+
#samples: 1
342+
#sample_retract_dist:
343+
# The distance (in mm) to back the toolhead off between each sample (if
344+
# sampling more than once). min_home_dist + homing_elapsed_distance_tolerance.
345+
# Needs to be greater than min_home_dist for everything to work properly.
346+
#samples_result: average
347+
#samples_tolerance: 0.100
348+
#samples_tolerance_retries: 0
349+
#drop_first_result: False
350+
# See the "probe" section for a description of the above parameters
351+
# If the second homing is enabled, the first homing move will only be once and the
352+
# second homing move will use samples.
353+
#sample_retract_speed:
354+
# Equals probes lift_speed, defaults to retract_speed
355+
#move_toolhead_after_adjusting: False
356+
# Move the toolhead to the configured homing position after adjusting the coordinate
357+
# system according to the samples.
358+
#retry_gcode:
359+
# For some kinematics, like CoreXY, if one axis skips while homing it also throws off
360+
# the other axis so it would be good to rehome that axis.
361+
# If the homing procedure has to retry at least once, this code will be executed after
362+
# homing is completed.
341363
```
342364

343365
### Cartesian Kinematics

docs/G-Codes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,16 @@ not recommended:
14071407
"triggered" or in an "open" state. This command is typically used to
14081408
verify that an endstop is working correctly.
14091409

1410+
### [homing_accuracy]
1411+
1412+
#### HOMING_ACCURACY
1413+
`HOMING_ACCURACY AXIS=<X|Y|Z> [DROP_FIRST_RESULT=<TRUE|FALSE>] [SPEED=<mm/s>] [SAMPLES=<count>]
1414+
[RETRACT_DIST=<mm>] [RETRACT_SPEED=<mm>]`: Calculate the maximum, minimum, average,
1415+
median, and standard deviation of multiple homing samples. By default,
1416+
10 SAMPLES are taken. Otherwise the optional parameters default to
1417+
their equivalent setting in the stepper config section.
1418+
Speed defaults to `second_homing_speed`.
1419+
14101420
### [resonance_tester]
14111421

14121422
The following commands are available when a

0 commit comments

Comments
 (0)