From: W. Trevor King Date: Mon, 23 Jan 2012 19:41:10 +0000 (-0500) Subject: Add min-slope-ratio option to BumpConfig. X-Git-Tag: v0.4~30^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8729f3a48542df3355233ac5a6b2b01b408e3488;p=pyafm.git Add min-slope-ratio option to BumpConfig. I was running into trouble moving to the surface with extremely long cantilevers, as the difference between the contact slope and non-contact drift was smaller than my hardcoded cutoff. Now the cutoff is configurable. --- diff --git a/calibcant/config.py b/calibcant/config.py index c80e791..2cb32da 100644 --- a/calibcant/config.py +++ b/calibcant/config.py @@ -88,6 +88,13 @@ class BumpConfig (_config.Config): help=('Maximum deflection in volts in case of stepper positioning ' 'to achieve the initial position.'), default=2.0), + _config.FloatSetting( + name='min-slope-ratio', + help=('Set the minimum ratio between the deflection/displacement ' + 'of the contact and the non-contact regions for bumps ' + 'seeking the surface. Bumps without sufficient difference ' + 'assume they need to move closer to find the surface.'), + default=10.0), _config.IntegerSetting( name='far-steps', help=('Number of stepper steps to move "far" away from the '