change bed compensation to allow a transform of XYZ not just a Zoffset

calculate distance travelled as 3D vector of compensated target