klipper-dgus/klippy
Kevin O'Connor 74cc005ff3 probe: Unify mean and median code between run_probe() and PROBE_ACCURACY
Factor out _calc_mean() and _calc_median() functions and call from
both run_probe() and cmd_PROBE_ACCURACY().

This also fixes a subtle error in the run_probe() median function - on
some kinematics the x and y position can change on a z move so the x
and y should be taken from the z probe values actually used.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2019-06-06 10:08:58 -04:00
..
chelper serialqueue: Wrap code to 80 columns 2019-02-27 14:20:15 -05:00
extras probe: Unify mean and median code between run_probe() and PROBE_ACCURACY 2019-06-06 10:08:58 -04:00
kinematics extruder: add get_status method 2019-06-04 11:44:57 -04:00
clocksync.py clocksync: Wrap code to 80 columns 2019-02-27 13:01:52 -05:00
configfile.py configfile: Add "include" support (#1359) 2019-03-22 20:31:40 -04:00
console.py bus: Support bus enumerations and add support for reserved pins 2019-04-04 18:29:31 -04:00
gcode.py gcode: "gcode_position" and toolhead "position" as get_status() named tuple 2019-06-04 09:50:30 -04:00
heater.py heater: Wrap code to 80 columns 2019-02-27 13:09:24 -05:00
homing.py gcode: "gcode_position" and toolhead "position" as get_status() named tuple 2019-06-04 09:50:30 -04:00
klippy.py klippy: Report the underlying error on an internal error during connect 2019-04-04 18:38:46 -04:00
mathutil.py gcode: Change respond_info() to log by default 2019-03-04 13:04:18 -05:00
mcu.py mcu: Support a start value for soft pwm pins 2019-06-02 10:59:33 -04:00
msgproto.py bus: Support bus enumerations and add support for reserved pins 2019-04-04 18:29:31 -04:00
parsedump.py build: Request python2 for all directly executed python binaries 2017-06-27 20:26:02 -04:00
pins.py bus: Support bus enumerations and add support for reserved pins 2019-04-04 18:29:31 -04:00
queuelogger.py klippy: Automatically clear rollover_info on each restart 2018-04-03 13:18:52 -04:00
reactor.py reactor: support for delayed callbacks 2019-01-07 21:38:36 -05:00
serialhdl.py serialhdl: Enforce exclusive access on POSIX, this is default behavior on windows. (#1216) 2019-04-14 11:27:43 -04:00
stepper.py endstop_phase: Move endstop phase homing code to new "extras" module 2018-10-16 13:09:23 -04:00
toolhead.py gcode: "gcode_position" and toolhead "position" as get_status() named tuple 2019-06-04 09:50:30 -04:00
util.py util: Ignore errors in clear_hupcl (allows OSX to run) 2019-05-20 16:49:42 -04:00