# back away
self.stepper.step_relative(-far, backlash_safe=True)
- cd = self.pyiezo.read_deflection() # cd = current deflection in bits
+ cd = self.piezo.read_deflection() # cd = current deflection in bits
LOG.debug('single stepping approach')
while cd < target_deflection:
LOG.debug('deflection %g < setpoint %g. step closer'
% (cd, target_deflection))
self.stepper.single_step(1) # step in
- cd = self.pyiezo.read_deflection()
+ cd = self.piezo.read_deflection()
for i in range(2*max(1, self.stepper.backlash)):
LOG.debug('additional surface location attempt')