CartGridStrategy: compensate Z scale based on target Z, not current Z
authorBryan Mayland <bmayland@capnbry.net>
Thu, 2 Aug 2018 21:10:09 +0000 (17:10 -0400)
committerBryan Mayland <bmayland@capnbry.net>
Thu, 2 Aug 2018 21:10:09 +0000 (17:10 -0400)
commit830cd4d06e99161032e0b3d602417d31c3dd3288
tree8c9de0eb4b94d28dc3c61dc87e4555b4f056a5c9
parent26044858c076705223a2e5c523112853562e814e
CartGridStrategy: compensate Z scale based on target Z, not current Z

The strategy scales the grid compensation between dampening_start and height_limit,
but the current Z position is used to generate the scale. This can create a discontinuity
when switching layers or Z-hopping because the new position is scaled based on the
previous position-- it shouldn't use any information about where it _was_ to adjust
the new Z height.
src/modules/tools/zprobe/CartGridStrategy.cpp