Uses `.piezo.get_surface_position()` to pinpoint the position
of the surface. Adjusts the stepper position as required via
- `.stepper.step_relative()` to get within
+ `.stepper.single_step()` to get within
`2*.stepper.step_size` meters of the surface. Then adjusts
the piezo to place the cantilever `depth` meters onto the
surface. Negative `depth`\s place the tip off the surface
_LOG.debug('fine tune the stepper position')
while pos_m < -stepper_tolerance: # step back if we need to
_LOG.debug('step back')
- self.stepper.step_relative(-1, backlash_safe=True)
+ self.stepper.single_step(-1)
try:
pos = self.piezo.get_surface_position(
axis_name=self.axis_name, max_deflection=target_def,
% (self.stepper.position, pos, pos_m))
while pos_m > stepper_tolerance: # step forward if we need to
_LOG.debug('step forward')
- self.stepper.step_relative(1)
+ self.stepper.single_step(1)
try:
pos = self.piezo.get_surface_position(
axis_name=self.axis_name, max_deflection=target_def,