I'm new to C programming.
And I have to control an analog linear motor.
That ain't the problem but.
The motor is moving an axis.
So the distance he can travel is limited.
The speed of the motor has to accelerate in the beginning and slow down at the end before stopping.
He has to do this with the priniciple of a sine wave.
The user is able to change the cycle time.
Now my big problem is. When you use a sine wave and you can change cycle time the surface under the sine wave has to be same anytime (because the distance keeps the same).
Probably you have to do this by using integration but I don't know how to do this in C.
Thank you very much for even answering.
If you don't have enough information, please ask.
Thanks in advance,
English ain't my native language, so sorry for any grammatical errors