Force dumping debug info on recreate.

We need a way to debug successful solvers that's still targeting to a
specific flight. This will do for now.
This commit is contained in:
Dan Albert
2023-08-08 20:56:26 -07:00
committed by Raffson
parent d96f7a267c
commit 97ee6ba19f
4 changed files with 26 additions and 13 deletions

View File

@@ -313,8 +313,8 @@ class Flight(SidcDescribable, RadioFrequencyContainer, TacanContainer):
if pilot is not None:
results.kill_pilot(self, pilot)
def recreate_flight_plan(self) -> None:
self._flight_plan_builder.regenerate()
def recreate_flight_plan(self, dump_debug_info: bool = False) -> None:
self._flight_plan_builder.regenerate(dump_debug_info)
@staticmethod
def clone_flight(flight: Flight) -> Flight: