Hi guys,
I got stuck with some maths and maybe someone here can help me.
I'm coding an AP to approach a certain target. After the main stage of linear deceleration I have defined a point for the very last much smoother approach. Here I say my aimed speed v is a linear function of the distance s to my target. Where x is some constant parameter depending mainly on the vessels acceleration capabilities:
v = x * s
I know the exact distance s and the resulting speed v for the moment when I enter this stage. What I want to know is the ETA time the stage will take (overall and from every point within) until target is reached where s = 0 and v = 0.
So how can I tranform this function of distance v=f(s) into a function of time v=f(t)?
I got stuck with some maths and maybe someone here can help me.
I'm coding an AP to approach a certain target. After the main stage of linear deceleration I have defined a point for the very last much smoother approach. Here I say my aimed speed v is a linear function of the distance s to my target. Where x is some constant parameter depending mainly on the vessels acceleration capabilities:
v = x * s
I know the exact distance s and the resulting speed v for the moment when I enter this stage. What I want to know is the ETA time the stage will take (overall and from every point within) until target is reached where s = 0 and v = 0.
So how can I tranform this function of distance v=f(s) into a function of time v=f(t)?