Use stepper.single_step instead of stepper.step_relative in AFM methods.
authorW. Trevor King <wking@drexel.edu>
Fri, 2 Mar 2012 21:22:08 +0000 (16:22 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 2 Mar 2012 21:22:08 +0000 (16:22 -0500)
commitb680a4388dde3503fb7754f16606fe742fdfb53f
tree675e6f07196c0bf0cdef4fde1b06b1d22898dfc2
parent01e11d3e054ffacb320b1a0ba4c523f53bc61c68
Use stepper.single_step instead of stepper.step_relative in AFM methods.

This avoids problems with steppers in full-step mode always rounding
the asked-for half step back to the current position.  The drawback to
the new approach is that we loose backlash protection when moving away
from the surface, but the surface fitting condition ...?
pyafm/afm.py