-
Notifications
You must be signed in to change notification settings - Fork 9
Description
The (~) insufficient fuel indicator in the Est. Burn text is often displayed incorrectly when the maneuver being planned has just crossed the sufficient/insufficient fuel boundary, because the text only gets updated when the (rounded) integer number of estimated seconds changes. Internally, BetterBurnTime does correctly compute whether there is sufficient/insufficient fuel -- it just fails to indicate so in the Est. Burn text display.
Example: Consider a ship with just enough fuel for a 20.1 second burn. While planning a maneuver and slowly increasing the planned burn time past 20.1 sec, the Est. Burn text doesn't actually change to (~) until the planned burn reaches 20.5 sec (when the Est. Burn text gets rounded up to 21) at which point it displays (~21). So, the Est. Burn will indicate that there is sufficient fuel for a 20.4 second burn, but there isn't.
Once past the 20.5 mark, then slowly decreasing the planned burn time (back down to 20.4 seconds) will now display (~20) correctly, but continuing to decrease to 20.05 sec fails to register in the Est. Burn text: it continues to display (~20) which is incorrect; there is indeed sufficient fuel for the 20.05 sec burn. Indeed, it continues to incorrectly indicate insufficient fuel all the way down to 19.5 sec (when it would round down to 19).