stepper_tolerance = 2*self.stepper.step_size
axis = self.piezo.axis_by_name(self.axis_name)
- defc = self._deflection_channel()
+ defc = self.piezo._deflection_channel()
zero = _convert_volts_to_bits(axis.config['channel'], 0)
target_def = _convert_volts_to_bits(defc.config, setpoint)
% (depth, self.stepper.position, target, target_m))
def _check_target_deflection(self, deflection):
- defc = self._deflection_channel()
+ defc = self.piezo._deflection_channel()
max_def = defc.get_maxdata()
if target_deflection > max_def:
_LOG.error(('requested setpoint ({:g} V = {:d} bits) is larger '