Add first waypoint to FlightData.

The first waypoint is automatically added by pydcs, so it's not
actually in our waypoint list from the flight planner. Import is from
the group so it shows up in the kneeboard.
This commit is contained in:
Dan Albert
2020-09-06 03:15:17 -07:00
parent ad42a3d956
commit ebedc02a0a
3 changed files with 34 additions and 3 deletions

View File

@@ -115,8 +115,6 @@ class BriefingGenerator(MissionInfoGenerator):
self.description += "-" * 50 + "\n"
self.description += f"{flight_unit_name} x {flight.size + 2}\n\n"
departure = flight.departure.airfield_name
self.description += f"#0 -- TAKEOFF : Take off from {departure}\n"
for i, wpt in enumerate(flight.waypoints):
self.description += f"#{i + 1} -- {wpt.name} : {wpt.description}\n"
self.description += f"#{len(flight.waypoints) + 1} -- RTB\n\n"