diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-02-05 14:52:38 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-02-05 14:52:38 -0500 |
commit | 955d940b60665fb6c643be0cf9130aab861d719b (patch) | |
tree | 3fc8d59cc5af9a813b0a53c75d24e5d82ff4b453 /klippy/extras | |
parent | 6ea36de9f2da5770cb233c1c10c79a208d822037 (diff) | |
download | kutter-955d940b60665fb6c643be0cf9130aab861d719b.tar.gz kutter-955d940b60665fb6c643be0cf9130aab861d719b.tar.xz kutter-955d940b60665fb6c643be0cf9130aab861d719b.zip |
bed_tilt: Negate parameters reported by bed_tilt_calibrate
The bed_tilt_calibrate command determines the tilt of the bed.
However, we need to report the tilt compensation which is the negative
of the bed tilt.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/bed_tilt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/bed_tilt.py b/klippy/extras/bed_tilt.py index 0b766328..316f1124 100644 --- a/klippy/extras/bed_tilt.py +++ b/klippy/extras/bed_tilt.py @@ -66,7 +66,7 @@ class BedTiltCalibrate: logging.debug("Params: %s", params) def adjusted_height(pos, params): x, y, z = pos - return (z + x*params['x_adjust'] + y*params['y_adjust'] + return (z - x*params['x_adjust'] - y*params['y_adjust'] - params['z_adjust']) def errorfunc(params): total_error = 0. |