aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/probe.py
Commit message (Collapse)AuthorAgeFilesLines
* gcode: Rename run_script() to run_script_from_command()Kevin O'Connor2018-06-301-3/+3
| | | | | | | Emphasize that the run_script() method is only valid when run from a g-code command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Rename get_position() callback to get_probed_position()Kevin O'Connor2018-06-221-1/+1
| | | | | | | The different uses of get_position() can be confusing, so choose a different name for the ProbePointsHelper callback. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: No need to call kin.get_position() to report positionKevin O'Connor2018-06-221-4/+3
| | | | | | | | After a probe operation, homing_move() will already have recalculated the toolhead position. The get_position() method can be slow, so use the already calculated position. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Replace PrinterHomingStepper with PrinterRailKevin O'Connor2018-06-221-3/+3
| | | | | | | | Update the code to use the term "rail" when dealing with a motor controlled "axis". A rail has a series of steppers and endstops that control that motor controlled "axis". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Extras: Probing does reply with the z position where the probe triggers.Hans Raaf2018-06-131-0/+4
| | | | | | | | | | | | | This change will make the "PROBE" command actually reply with the z-position where the probe triggers. As this command is called internally for the BED_TILT_CALIBRATE and Z_TILT_ADJUST those commands will also give a response while probing, which I see as advantage over the silent operation. This change also lets one define some gcode for a repeatable probing test to meassure the quality of the sensor and overall probing accuracy. Signed-off-by: Hans Raaf <hr-klipper@oderwat.de>
* probe: Catch and propagate errors raised during ProbePointsHelperKevin O'Connor2018-06-111-5/+17
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* z_tilt: Add support for Z_TILT_ADJUSTKevin O'Connor2018-05-221-0/+2
| | | | | | | Add new module to support independent adjustments to multiple Z steppers to account for bed tilt. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Verify horizontal_move_z not less than probe's z_offsetKevin O'Connor2018-05-201-0/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Move code from bed_tilt and delta_calibrate into ProbePointsHelperKevin O'Connor2018-05-201-19/+39
| | | | | | | | Move the common config reading and probe object lookup from the bed_tilt.py and delta_calibrate.py code into the ProbePointsHelper class. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Limit Z lift speed to be the same as the probing speedKevin O'Connor2018-04-201-3/+7
| | | | | | | When using an automatic probe, limit the Z lift speed to be no greater than the Z probing speed. This can reduce Z jerks during probing. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Add z_offset parameterKevin O'Connor2018-03-171-1/+7
| | | | | | | | | Move the probe_z_offset parameter from delta_calibrate and bed_tilt_calibrate to a z_offset parameter within the probe config section. It's easier to understand the z offset setting when it is in the probe config section. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bed_tilt: Take into account the XY position used with z_virtual_endstopKevin O'Connor2018-03-171-1/+28
| | | | | | | | If a z_virtual_endstop is in use, then record the last XY position that is used when the Z is homed. Use that XY position to report what change is needed to the z position_endstop. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Default z_position to the configured minimum position on Z axisKevin O'Connor2018-03-171-11/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Add some hints for common errors during PROBEKevin O'Connor2018-03-121-1/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mathutil: Move coordinate_descent() to new fileKevin O'Connor2018-03-041-35/+0
| | | | | | | Add a new python file (mathutil.py) and move the coordinate_descent() code to it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Increase calibration log level from debug to infoKevin O'Connor2018-02-161-1/+1
| | | | | | | Output more information by default from the bed_tilt and delta_calibrate commands. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Introduce load_config_prefix() for modules that take parametersKevin O'Connor2018-02-031-2/+0
| | | | | | | | Use both load_config() and load_config_prefix() functions when dynamically loading a module from the extras directory - if the config section name has parameters in it then use load_config_prefix(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Create a probe:z_virtual_endstop pinKevin O'Connor2018-01-281-1/+12
| | | | | | | Create a virtual pin that may be used as the z endstop pin on cartesian printers that use the probe in place of a z endstop. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Support activate/deactivate scripts on each probeKevin O'Connor2018-01-281-0/+26
| | | | | | | | Allow a set of g-code scripts to be run on each probe invocation. This may be useful for probes that need to be setup before they are useful (eg, with servo actuated probes). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* delta_calibrate: Add initial support for a DELTA_CALIBRATE commandKevin O'Connor2018-01-281-0/+86
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Initial support for Z-Probe hardwareKevin O'Connor2018-01-281-0/+54
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>