I'm writing a program that controls space ship. I needed to determine total travel time for the following scenario:
- ship has some initial velocity V0
- ship needed to travel distance D with maximum possible velocity, but have zero V at the end of the travel
- so, ship accelerates up to Vmax and then decelerates to zero V
- ship accelerates with acceleration Aa = 0, with constant jerk Ja up to Aamax, up to Vmax
- then it immediately starts to decelerate using other group of thrusters
- thrusters used for acceleration cut off instantly
- ship starts to decelerate with Ad = 0, with constant jerk Jd up to Admax, down to zero velocity
- as for accel thrusters, decel thrusters cut off instantly too
Control program needed to calculate total travel time or Vmax.
Thanks in advance
Edit: clarification
- Ship needed to travel distance D with minimum time possible - it accelerates up to some speed Vmax (which is unknown) then it decelerates. At the end of the travel speed must be zero
- Given: distance D, initial velocity V0 (can be zero), max acceleration Aamax, acceleration jerk Ja, max deceleration Admax, deceleration jerk Jd
- There is no connection between Vmax and maximum acceleration
- Both acceleration and deceleration work in the same manner: firstly, it accelerates under jerk for Tj = Amax / J with A = Jt, then it accelerates for Ta with constant A = Amax
- Total time traveled: T = T1j + T1a + T2j + T2a, T1j = Aamax / Ja, T1a > 0, T2j = Admax / Jd, T2a > 0
Sorry for inconvenience