mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Handle OPSGROUP:MarkWaypoints() when waypoint altitude is nil
This commit is contained in:
parent
e2929a78c4
commit
3adf6d635a
@ -3013,7 +3013,7 @@ function OPSGROUP:MarkWaypoints(Duration)
|
||||
local waypoint=_waypoint --#OPSGROUP.Waypoint
|
||||
|
||||
local text=string.format("Waypoint ID=%d of %s", waypoint.uid, self.groupname)
|
||||
text=text..string.format("\nSpeed=%.1f kts, Alt=%d ft (%s)", UTILS.MpsToKnots(waypoint.speed), UTILS.MetersToFeet(waypoint.alt), "BARO")
|
||||
text=text..string.format("\nSpeed=%.1f kts, Alt=%d ft (%s)", UTILS.MpsToKnots(waypoint.speed), UTILS.MetersToFeet(waypoint.alt or 0), "BARO")
|
||||
|
||||
if waypoint.marker then
|
||||
if waypoint.marker.text~=text then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user