Convert speed value into two signals sin, cos representing position