stepper_tolerance = 2*self.stepper.step_size
axis = self.piezo.axis_by_name(self.axis_name)
- defc = self.piezo._deflection_channel()
+ def_config = self.piezo.config.select_config('inputs', 'deflection')
zero = _convert_volts_to_bits(axis.config['channel'], 0)
- target_def = _convert_volts_to_bits(defc.config, setpoint)
+ target_def = _convert_volts_to_bits(def_config, setpoint)
self._check_target_deflection(deflection=target_def)
_LOG.debug('zero the %s piezo output' % self.axis_name)