From 2856fbc42b90039c0b1d64b799d0bdeba6bdf387 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 23 Dec 2020 17:52:14 -0800 Subject: [PATCH] Improve display of nav points in kneeboard. --- gen/flights/flight.py | 3 +++ gen/flights/waypointbuilder.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gen/flights/flight.py b/gen/flights/flight.py index 36e5d720..9b659c5f 100644 --- a/gen/flights/flight.py +++ b/gen/flights/flight.py @@ -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 = "" diff --git a/gen/flights/waypointbuilder.py b/gen/flights/waypointbuilder.py index ee1b494a..2d5ca9d8 100644 --- a/gen/flights/waypointbuilder.py +++ b/gen/flights/waypointbuilder.py @@ -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,