Control of oscillatory movement like filling a weld, weaving