if (sticky < 0) {
sticky = 0;
do {
actuatorPosition(goPos);
} while (goPos != lastGoPos);
}
if the actuatorPosition function does not update goPos or lastGoPos, then this loop will never terminate. The sketch will get stuck. This is why we need the whole sketch - we don't know what actuatorPosition does, we doint know where these two variables are defined.
Oh, and the forum uses bbcode for formatting, so it's
** **[code][/code]** **
, not
** **<code></code>** **
. But at least you made the effort, unlike a few other posters here.