Text this: Motion control algorithm development and testing for a free-piston engine generator