Nigel Dunmore replied to the topic 'Focus backlash issue' in the forum. 1 year ago

ok the relevant code looks to be :-
——-
// implement backlash
int delta = targetTicks - FocusAbsPosN[0].value;
if ((FocusBacklashN[0].value < 0 && delta > 0) ||
(FocusBacklashN[0].value > 0 && delta < 0))
{
backlashMove = true;
finalPosition = position;
position -= FocusBacklashN[0].value;
}

if (!startMove(position))
return IPS_ALERT;

———
so the answer looks to be yes. If it’s moving inwards - delta <0 and focusBacklash is positive then it will subtract the backlash ie move further inwards, then later in another bit of code move outwards to the final position. This occurs for both absolute and relative moves. Doesn’t seem to worry about whether this is a change of direction or not which in this case is for the good.No idea why it would want to have backlash compensation in the other direction but the code seems to allow that.

Read More...