trying to create sinusoidal velocity generator