Control of precision mechatronics systems