Improve display of nav points in kneeboard.

This commit is contained in:
Dan Albert 2020-12-23 17:52:14 -08:00
parent ac59e15bd9
commit 2856fbc42b
2 changed files with 5 additions and 2 deletions

View File

@ -84,6 +84,9 @@ class FlightWaypoint:
self.alt = alt
self.alt_type = "BARO"
self.name = ""
# TODO: Merge with pretty_name.
# Only used in the waypoint list in the flight edit page. No sense
# having three names. A short and long form is enough.
self.description = ""
self.targets: List[MissionTarget] = []
self.obj_name = ""

View File

@ -456,8 +456,8 @@ class WaypointBuilder:
altitude
)
waypoint.name = "NAV"
waypoint.description = ""
waypoint.pretty_name = ""
waypoint.description = "NAV"
waypoint.pretty_name = "Nav"
return waypoint
def nav_path(self, a: Point, b: Point,