Principia icon indicating copy to clipboard operation
Principia copied to clipboard

The flight plan should not be silently truncated in target LVLH when the prediction of the target is too short

Open eggrobin opened this issue 4 years ago • 0 comments

@fat-lobyte came across this issue. In the image below, the manœuvre is not displayed, but there is no error message. The issue may be worked around by increasing the tolerance or number of prediction steps, but nothing suggests that. Freshness of the prediction of the target is not critical (it is passive except in exotic cases at close range), so there should be no harm in automatically increasing the number of steps requested for that prediction when it is insufficient for the flight plan. Note that this partially decouples it from the current prediction parameters, which is what is currently used: https://github.com/mockingbirdnest/Principia/blob/12d2e88992eafb7836789144b60873e5e80aa202/ksp_plugin/plugin.cpp#L879-L885 We may want to make this temporary, instead of mutating the prediction parameters of the target.

eggrobin avatar May 11 '21 19:05 eggrobin