Simpit-team / KerbalSimpitRevamped

A revamp of the Kerbal Simpit Mod for KSP
BSD 2-Clause "Simplified" License
26 stars 15 forks source link

[Feature]: Improve control on "Timewarp to" command #58

Closed PBechon closed 1 year ago

PBechon commented 3 years ago

Current Timewarp message allow the user to warp to a specific point in time (apoapsis, periapsis, next maneuver, SOI change or next morning). For the first 3 options, the user may want to perform a burn so the need is not to warp to this point in time but a little before it.

First option is to warp to a given delta of the timepoint (for instance 30 sec before). This value could be hardcoded or set in the config file.

For the warp to maneuver, we could use the estimated burntime to warp to 30sec + half of the estimated burnime for instance (to account for 30 sec to rotate and then perform half the burn before the maneuver and half of it after). The estimated burntime is currently estimated with a cross multiplication of the delta-v of the maneuver with the current stage delta-v and burntime. It could be used as is or the computation could be improved to take into account a maneuver that need several stages.

To account for those different solutions, addition values for WarpControlValues can be added :

PBechon commented 1 year ago

Added in f96a2d57fc4af32a2c49a38708f240967f2a9dc3